summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 15:37:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 15:37:04 +0000
commit090e691462bbe60c72c734f454f6d1e20c41a4e8 (patch)
treef5e60b4b9898da5b8ece7946738d85800f4489b0 /src/commands.cpp
parent35ac0e70f91f17f6d150fa99819f4bc88071d9c6 (diff)
Added reason to OnUserQuit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2007 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 1b7c03ea3..a1f914734 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -867,6 +867,7 @@ void handle_quit(char **parameters, int pcnt, userrec *user)
Write(user->fd,"ERROR :Closing link (%s@%s) [%s%s]",user->ident,user->host,PrefixQuit,parameters[0]);
WriteOpers("*** Client exiting: %s!%s@%s [%s%s]",user->nick,user->ident,user->host,PrefixQuit,parameters[0]);
WriteCommonExcept(user,"QUIT :%s%s",PrefixQuit,parameters[0]);
+ FOREACH_MOD OnUserQuit(user,parameters[0]);
}
else
@@ -874,9 +875,9 @@ void handle_quit(char **parameters, int pcnt, userrec *user)
Write(user->fd,"ERROR :Closing link (%s@%s) [QUIT]",user->ident,user->host);
WriteOpers("*** Client exiting: %s!%s@%s [Client exited]",user->nick,user->ident,user->host);
WriteCommonExcept(user,"QUIT :Client exited");
+ FOREACH_MOD OnUserQuit(user,"Client exited");
}
- FOREACH_MOD OnUserQuit(user);
AddWhoWas(user);
}