diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/connection.h | 3 | ||||
-rw-r--r-- | include/modules.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/connection.h b/include/connection.h index d92cc6354..2dd11633b 100644 --- a/include/connection.h +++ b/include/connection.h @@ -14,6 +14,7 @@ #include <errno.h> #include <time.h> #include <vector> +#include <deque> #ifndef __CONNECTION_H__ #define __CONNECTION_H__ @@ -110,7 +111,7 @@ class connection : public classbase bool BeginLink(char* targethost, int port, char* password, char* servername); void TerminateLink(char* targethost); bool SendPacket(char *message, char* host); - bool RecvPacket(string_list &messages, char* host); + bool RecvPacket(std::deque<std::string> &messages, char* host); ircd_connector* FindHost(std::string host); bool AddIncoming(int fd,char* targethost); long GenKey(); diff --git a/include/modules.h b/include/modules.h index 1db17b291..20fb5f04d 100644 --- a/include/modules.h +++ b/include/modules.h @@ -30,6 +30,7 @@ typedef std::deque<std::string> file_cache; typedef file_cache string_list; + // This #define allows us to call a method in all // loaded modules in a readable simple way, e.g.: // 'FOREACH_MOD OnConnect(user);' |