diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-21 13:58:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-05-21 14:00:09 +0200 |
commit | c47ec545d87e622aa950e653e4f91721d79bb049 (patch) | |
tree | e74c2ba840d7d32a4d20e73f4d318f0f3a8b5c44 /include/Command.hpp | |
parent | 8052fe6d6170ccbec9052b89e331ae786c69ee05 (diff) |
Add command to change avatar and channel name
Fix bug where application crashes when deleting message,
improve url parsing for messages
Diffstat (limited to 'include/Command.hpp')
-rw-r--r-- | include/Command.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Command.hpp b/include/Command.hpp index fe8a947..fe08664 100644 --- a/include/Command.hpp +++ b/include/Command.hpp @@ -3,6 +3,7 @@ #include <vector> #include <string> #include <functional> +#include <unordered_map> namespace dchat { @@ -13,5 +14,7 @@ namespace dchat public: static bool add(const std::string &cmd, CommandHandlerFunc handlerFunc); static bool call(const std::string &cmd, const std::vector<std::string> &args); + + static const std::unordered_map<std::string, CommandHandlerFunc>& getCommands(); }; } |