Florent Le Coz
284af79128
Provide a “var” map in AdhocSession objects, to save values between each step
2015-12-03 21:08:04 +01:00
Florent Le Coz
4e32fe213c
Refactor XmppParser::end_element to make it clearer
...
Both for me, and apparently for clang static analyzer, who reported a (imo)
false positive.
2015-10-28 02:32:19 +01:00
Florent Le Coz
450de4c336
Style, add a few “this->”
2015-10-26 20:28:36 +01:00
Florent Le Coz
1031989fe2
XmlNode::add_child can also take a copy of a node
2015-09-18 22:09:26 +02:00
Florent Le Coz
45e8fe56a6
Add an AdhocCommandsHandler to store commands specific to IRC servers
2015-09-18 22:09:26 +02:00
Florent Le Coz
19666d2ffd
Store the target jid in the AdhocSession objects
2015-09-18 22:09:26 +02:00
Florent Le Coz
c3309d0acf
Trivial cleanup
2015-09-01 20:01:44 +02:00
Florent Le Coz
f3b3d937ae
Use unique_ptr to store the XmlNode’s children
...
Also fix some constness things
2015-09-01 14:47:57 +02:00
Florent Le Coz
38564d77c7
Little cleanup of the XmlNode class
...
Use map instead of unordered map (it's not slower, and it's shorter).
Use the default move constructor.
2015-09-01 04:56:06 +02:00
Florent Le Coz
d7e1214cbc
XmlNode::to_string uses an ostringstream instead of a string
...
On my poor benchmark, it was infinitesimally faster.
2015-09-01 04:53:12 +02:00
Florent Le Coz
e8f22efe34
XmlNodes are now always closed
...
Remove the close() method and closed attribute. Remove all the calls to
close(). (Save one bool per XmlNode, yay, and save a few ifs and some
useless function calls. At best it should be unnoticeably faster and lighter
and save a few keystrokes in the future)
2015-09-01 04:42:12 +02:00
Florent Le Coz
a42af9e700
Fix the log_* macros to not have two ; at the end of lines
2015-07-09 13:49:08 +02:00
Florent Le Coz
7f7c429ae4
Do not send the admin-only adhoc commands to non-admin users
...
They were not able to execute them anyway, so this was just a little
usability issue.
2015-06-09 14:52:46 +02:00
Florent Le Coz
e1a7114c8d
louloulibs is directly included, instead of being a submodule
...
Because this is a nightmare to manage
2015-05-28 23:46:24 +02:00