1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 14:43:13 +02:00

Changed the protocol handling system to use a vector of strings instead of C style arrays. Burned the old process/split_buf/memory.c code

This commit is contained in:
Adam
2010-10-04 13:59:30 -04:00
parent 632f8df76b
commit cf98cd3e06
19 changed files with 1417 additions and 1739 deletions
+1 -2
View File
@@ -159,7 +159,6 @@ enum Priority { PRIORITY_FIRST, PRIORITY_DONTCARE, PRIORITY_LAST, PRIORITY_BEFOR
/* Module types, in the order in which they are unloaded. The order these are in is IMPORTANT */
enum MODType { MT_BEGIN, THIRD, QATESTED, SUPPORTED, CORE, DATABASE, ENCRYPTION, PROTOCOL, SOCKETENGINE, MT_END };
struct Message;
typedef std::multimap<Anope::string, Message *> message_map;
extern CoreExport message_map MessageMap;
class Module;
@@ -1269,7 +1268,7 @@ class service_reference : public dynamic_reference<T>
struct Message
{
Anope::string name;
int (*func)(const Anope::string &source, int ac, const char **av);
bool (*func)(const Anope::string &source, const std::vector<Anope::string> &params);
};
#endif // MODULES_H