diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 16:12:36 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 16:12:36 +0000 |
commit | a8aace58064fe3552b905567e4eab0bd4d4aba14 (patch) | |
tree | 120dec08841a5728b25da67b44334c671efbfaa5 /src | |
parent | ecee8268b239c22cc68dd624779aae84e6020939 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_away.cpp | 4 | ||||
-rw-r--r-- | src/cmd_modules.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
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<Module*> modules; +extern std::vector<ircd_module*> 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) |