summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp4
1 files changed, 3 insertions, 1 deletions
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);
}
}