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:
+1
-2
@@ -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> ¶ms);
|
||||
};
|
||||
|
||||
#endif // MODULES_H
|
||||
|
||||
Reference in New Issue
Block a user