diff options
| author | DukePyrolator <anope@s15355730.onlinehome-server.info> | 2010-06-22 22:06:23 +0200 |
|---|---|---|
| committer | DukePyrolator <anope@s15355730.onlinehome-server.info> | 2010-06-22 22:06:23 +0200 |
| commit | 959a1a69a5179c6f186026190cd77f8338b5c50a (patch) | |
| tree | bbffc7c7a620a799612602836440a6c72234e6ed /include | |
| parent | 7e872db956da543b321e69cf5ff6c8d0866d9cc4 (diff) | |
moved FindMessage() into the Anope class
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules.h | 1 | ||||
| -rw-r--r-- | include/services.h | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index 8643518de..10e169dff 100644 --- a/include/modules.h +++ b/include/modules.h @@ -129,7 +129,6 @@ extern CoreExport Module *FindModule(const std::string &name); extern CoreExport Module *FindModule(const ci::string &name); int protocol_module_init(); extern CoreExport Message *createMessage(const char *name, int (*func)(const char *source, int ac, const char **av)); -std::vector<Message *> FindMessage(const std::string &name); extern CoreExport bool moduleMinVersion(int major,int minor,int patch,int build); enum ModuleReturn diff --git a/include/services.h b/include/services.h index c72d7d1f0..900c8d49c 100644 --- a/include/services.h +++ b/include/services.h @@ -1058,6 +1058,13 @@ class CoreExport Anope * @return true if the message was found and deleted, else false */ static bool DelMessage(Message *m); + + /** Returns a list of pointers to message handlers + * @param The message name as sent by the IRCd + * @return a vector with pointers to the messagehandlers (you can bind more than one handler to a message) + */ + static std::vector<Message *> FindMessage(const std::string &name); + }; /*************************************************************************/ |
