]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
After discussions and thought, move umode +n to +s. This increases cross-ircd compat...
[user/henk/code/inspircd.git] / src / modules.cpp
index 57790cd1b5b227c3d7aad4a6780a186cd7718a50..8d6f3f9a1f0166519067c5807ecf003c47200f3c 100644 (file)
@@ -111,7 +111,7 @@ void                Module::OnUserQuit(User*, const std::string&, const std::string&) { }
 void           Module::OnUserDisconnect(User*) { }
 void           Module::OnUserJoin(User*, Channel*, bool, bool&) { }
 void           Module::OnPostJoin(User*, Channel*) { }
-void           Module::OnUserPart(User*, Channel*, const std::string&, bool&) { }
+void           Module::OnUserPart(User*, Channel*, std::string&, bool&) { }
 void           Module::OnRehash(User*, const std::string&) { }
 void           Module::OnServerRaw(std::string&, bool, User*) { }
 int            Module::OnUserPreJoin(User*, Channel*, const char*, std::string&, const std::string&) { return 0; }
@@ -143,6 +143,8 @@ int         Module::OnCheckInvite(User*, Channel*) { return 0; }
 int            Module::OnCheckKey(User*, Channel*, const std::string&) { return 0; }
 int            Module::OnCheckLimit(User*, Channel*) { return 0; }
 int            Module::OnCheckBan(User*, Channel*) { return 0; }
+int            Module::OnCheckExtBan(User *, Channel *, char) { return 0; }
+int            Module::OnCheckStringExtBan(const std::string &s, Channel *c, char type) { return 0; }
 int            Module::OnStats(char, User*, string_list&) { return 0; }
 int            Module::OnChangeLocalUserHost(User*, const std::string&) { return 0; }
 int            Module::OnChangeLocalUserGECOS(User*, const std::string&) { return 0; }
@@ -341,7 +343,7 @@ bool ModuleManager::SetPriority(Module* mod, Implementation i, PriorityState s,
 
                for (unsigned int j = source; j != swap_pos; j += incrmnt)
                {
-                       if (( j + incrmnt > EventHandlers[i].size() - 1) || (j - incrmnt < 0))
+                       if (( j + incrmnt > EventHandlers[i].size() - 1) || (j + incrmnt < 0))
                                continue;
 
                        std::swap(EventHandlers[i][j], EventHandlers[i][j+incrmnt]);