diff options
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(); }; } |