From 959a1a69a5179c6f186026190cd77f8338b5c50a Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Tue, 22 Jun 2010 22:06:23 +0200 Subject: moved FindMessage() into the Anope class --- include/modules.h | 1 - include/services.h | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'include') 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 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 FindMessage(const std::string &name); + }; /*************************************************************************/ -- cgit