diff options
-rw-r--r-- | src/modules/m_nonicks.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_operchans.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_operjoin.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_operlevels.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_opermodes.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_opermotd.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_override.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_park.cpp | 5 |
8 files changed, 36 insertions, 1 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index f14114857..c2e937f17 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -78,7 +78,7 @@ class ModuleNoNickChange : public Module irc::string me = Srv->GetServerName().c_str(); if (server == me) { - for (int i =0; i < user->chans.size(); i++) + for (unsigned int i =0; i < user->chans.size(); i++) { if (user->chans[i].channel != NULL) { diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp index db2c24671..af94bc25f 100644 --- a/src/modules/m_operchans.cpp +++ b/src/modules/m_operchans.cpp @@ -37,6 +37,11 @@ class ModuleOperChans : public Module // Add a mode +O for channels with no parameters Srv->AddExtendedMode('O',MT_CHANNEL,false,0,0); } + + void Implements(char* List) + { + List[I_OnExtendedMode] = List[I_On005Numeric] = List[I_OnUserPreJoin] = 1; + } virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms) { diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index b9adb890c..1e767bd86 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -25,6 +25,11 @@ class ModuleOperjoin : public Module operChan = conf->ReadValue("operjoin", "channel", 0); } + void Implements(char* List) + { + List[I_OnOper] = 1; + } + virtual ~ModuleOperjoin() { delete conf; diff --git a/src/modules/m_operlevels.cpp b/src/modules/m_operlevels.cpp index 54d111440..da3ab18b3 100644 --- a/src/modules/m_operlevels.cpp +++ b/src/modules/m_operlevels.cpp @@ -32,6 +32,11 @@ class ModuleOperLevels : public Module delete conf; } + void Implements(char* List) + { + List[I_OnRehash] = List[I_OnKill] = 1; + } + virtual void OnRehash(std::string parameter) { delete conf; diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index a2229a047..628f0a40d 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -37,6 +37,11 @@ class ModuleModesOnOper : public Module Srv = Me; Conf = new ConfigReader; } + + void Implements(char* List) + { + List[I_OnOper] = 1; + } virtual ~ModuleModesOnOper() { diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp index 7fd19122b..6ea7af048 100644 --- a/src/modules/m_opermotd.cpp +++ b/src/modules/m_opermotd.cpp @@ -80,6 +80,11 @@ class ModuleOpermotd : public Module return Version(1,0,0,1,VF_VENDOR); } + void Implements(char* List) + { + List[I_OnRehash] = List[I_OnOper] = 1; + } + virtual void OnOper(userrec* user, std::string opertype) { ShowOperMOTD(user); diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index 5a55c17a8..055890988 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -55,6 +55,11 @@ class ModuleOverride : public Module NoisyOverride = Conf->ReadFlag("override","noisy",0); } + void Implements(char* List) + { + List[I_OnRehash] = List[I_OnAccesscheck] = List[I_On005Numeric] = List[I_OnUserPreJoin] = 1; + } + virtual void On005Numeric(std::string &output) { output = output + std::string(" OVERRIDE"); diff --git a/src/modules/m_park.cpp b/src/modules/m_park.cpp index 264a3ba0f..1b9d4248c 100644 --- a/src/modules/m_park.cpp +++ b/src/modules/m_park.cpp @@ -232,6 +232,11 @@ class ModulePark : public Module { } + void Implements(char* List) + { + List[I_OnRehash] = List[I_OnUserQuit] = List[I_OnUserPreMessage] = List[I_OnUserPreNick] = List[I_OnBackgroundTimer] = List[I_OnWhois] = 1; + } + virtual void OnRehash(std::string parameter) { this->ReadSettings(); |