diff options
| author | 2006-01-17 21:39:35 +0000 | |
|---|---|---|
| committer | 2006-01-17 21:39:35 +0000 | |
| commit | 7e6dfdf2118d4db84b85d19278a83186046ea2bb (patch) | |
| tree | ad44710504ce8ac626f50f90d0e37942a9013ee8 /src/modules/m_spanningtree.cpp | |
| parent | Fixed bug with {} -> [] etc in NICK where nick == newnick apart from irc-case: (diff) | |
| download | inspircd++-7e6dfdf2118d4db84b85d19278a83186046ea2bb.tar.gz inspircd++-7e6dfdf2118d4db84b85d19278a83186046ea2bb.tar.bz2 inspircd++-7e6dfdf2118d4db84b85d19278a83186046ea2bb.zip | |
Added support for part messages in the module API (and therefore between servers too)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2815 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
| -rw-r--r-- | src/modules/m_spanningtree.cpp | 4 |
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); } } |
