diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_chanfilter.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_chanprotect.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_foobar.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree.cpp | 4 |
4 files changed, 6 insertions, 4 deletions
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp index 69c4ca0a3..edd87ecff 100644 --- a/src/modules/m_chanfilter.cpp +++ b/src/modules/m_chanfilter.cpp @@ -72,7 +72,7 @@ class ModuleChanFilter : public Module output = temp2.substr(0,temp2.length()-1); } - virtual void OnUserPart(userrec* user, chanrec* channel) + virtual void OnUserPart(userrec* user, chanrec* channel, std::string partreason) { // when the last user parts, delete the list if (Srv->CountUsers(channel) == 1) diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 6f12566d0..8e2319037 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -85,7 +85,7 @@ class ModuleChanProtect : public Module user->Shrink("cm_protect_"+std::string(chan->name)); } - virtual void OnUserPart(userrec* user, chanrec* channel) + virtual void OnUserPart(userrec* user, chanrec* channel, std::string partreason) { // FIX: when someone parts a channel we must remove their Extensibles! user->Shrink("cm_founder_"+std::string(channel->name)); diff --git a/src/modules/m_foobar.cpp b/src/modules/m_foobar.cpp index 65b88f494..531176299 100644 --- a/src/modules/m_foobar.cpp +++ b/src/modules/m_foobar.cpp @@ -86,7 +86,7 @@ class ModuleFoobar : public Module Srv->Log(DEBUG,"Foobar: User " + b + " joined " + c); } - virtual void OnUserPart(userrec* user, chanrec* channel) + virtual void OnUserPart(userrec* user, chanrec* channel, std::string partreason) { // method called when a user parts a channel diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index b0530442b..124583ff1 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2988,12 +2988,14 @@ class ModuleSpanningTree : public Module DoOneToMany(user->nick,"FNAME",params); } - virtual void OnUserPart(userrec* user, chanrec* channel) + virtual void OnUserPart(userrec* user, chanrec* channel, std::string partmessage) { if (user->fd > -1) { std::deque<std::string> params; params.push_back(channel->name); + if (partmessage != "") + params.push_back(":"+partmessage); DoOneToMany(user->nick,"PART",params); } } |