aboutsummaryrefslogtreecommitdiff
path: root/src/Command.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-21 13:58:47 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-21 14:00:09 +0200
commitc47ec545d87e622aa950e653e4f91721d79bb049 (patch)
treee74c2ba840d7d32a4d20e73f4d318f0f3a8b5c44 /src/Command.cpp
parent8052fe6d6170ccbec9052b89e331ae786c69ee05 (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 'src/Command.cpp')
-rw-r--r--src/Command.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Command.cpp b/src/Command.cpp
index a28cd42..fb4c0cb 100644
--- a/src/Command.cpp
+++ b/src/Command.cpp
@@ -1,5 +1,4 @@
#include "../include/Command.hpp"
-#include <unordered_map>
using namespace std;
@@ -34,4 +33,9 @@ namespace dchat
}
return false;
}
+
+ const std::unordered_map<std::string, CommandHandlerFunc>& Command::getCommands()
+ {
+ return commandHandlerFuncs;
+ }
}