From a8aace58064fe3552b905567e4eab0bd4d4aba14 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 5 Feb 2006 16:12:36 +0000 Subject: Bugfix to cmd_modules, we've added some event types since it was written, could potentially overflow if issued when new ones used Made cmd_away compile again git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3096 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_away.cpp | 4 ++++ src/cmd_modules.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmd_away.cpp b/src/cmd_away.cpp index 4623dc7f7..65e613acb 100644 --- a/src/cmd_away.cpp +++ b/src/cmd_away.cpp @@ -39,6 +39,10 @@ using namespace std; extern ServerConfig* Config; extern InspIRCd* ServerInstance; +extern int MODCOUNT; +extern std::vector modules; +extern std::vector factory; + void cmd_away::Handle (char **parameters, int pcnt, userrec *user) { diff --git a/src/cmd_modules.cpp b/src/cmd_modules.cpp index 75c730052..460290edc 100644 --- a/src/cmd_modules.cpp +++ b/src/cmd_modules.cpp @@ -74,7 +74,7 @@ char* itab[] = { "OnCheckKey", "OnCheckLimit", "OnCheckBan", "OnStats", "OnChangeLocalUserHost", "OnChangeLocalUserGecos", "OnLocalTopicChange", "OnPostLocalTopicChange", "OnEvent", "OnRequest", "OnOperCompre", "OnGlobalOper", "OnGlobalConnect", "OnAddBan", "OnDelBan", "OnRawSocketAccept", "OnRawSocketClose", "OnRawSocketWrite", "OnRawSocketRead", "OnChangeLocalUserGECOS", "OnUserRegister", - "OnOperCompare", NULL + "OnOperCompare", "OnChannelDelete", "OnPostOper", "OnSyncOtherMetaData", "OnSetAway", "OnCancelAway", NULL }; void cmd_modules::Handle (char **parameters, int pcnt, userrec *user) -- cgit v1.2.3