diff options
| author | 2006-01-17 21:39:35 +0000 | |
|---|---|---|
| committer | 2006-01-17 21:39:35 +0000 | |
| commit | 7e6dfdf2118d4db84b85d19278a83186046ea2bb (patch) | |
| tree | ad44710504ce8ac626f50f90d0e37942a9013ee8 /src/channels.cpp | |
| parent | Fixed bug with {} -> [] etc in NICK where nick == newnick apart from irc-case: (diff) | |
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/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 5af0f3329..552da3a5d 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -404,7 +404,6 @@ chanrec* del_channel(userrec *user, const char* cname, const char* reason, bool if (!Ptr) return NULL; - FOREACH_MOD(I_OnUserPart,OnUserPart(user,Ptr)); log(DEBUG,"del_channel: removing: %s %s",user->nick,Ptr->name); for (unsigned int i =0; i < user->chans.size(); i++) @@ -414,10 +413,12 @@ chanrec* del_channel(userrec *user, const char* cname, const char* reason, bool { if (reason) { + FOREACH_MOD(I_OnUserPart,OnUserPart(user,Ptr,reason)); WriteChannel(Ptr,user,"PART %s :%s",Ptr->name, reason); } else { + FOREACH_MOD(I_OnUserPart,OnUserPart(user,Ptr,"")); WriteChannel(Ptr,user,"PART :%s",Ptr->name); } user->chans[i].uc_modes = 0; |
