diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 16:08:46 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 16:08:46 +0000 |
commit | ecee8268b239c22cc68dd624779aae84e6020939 (patch) | |
tree | 81dc42ccded71d502b0c057302fff71bcb975c0c /src/cmd_away.cpp | |
parent | 73b3492de62e3ee36d99df5ceeaa3c6f9930c0f6 (diff) |
Propogation of away messages across network (we dont bounce the numeric back for every privmsg like other ircds, we burst them and keep them synched by broadcasting AWAY)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3095 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_away.cpp')
-rw-r--r-- | src/cmd_away.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd_away.cpp b/src/cmd_away.cpp index b68dcdeda..4623dc7f7 100644 --- a/src/cmd_away.cpp +++ b/src/cmd_away.cpp @@ -46,11 +46,13 @@ void cmd_away::Handle (char **parameters, int pcnt, userrec *user) { strlcpy(user->awaymsg,parameters[0],MAXAWAY); WriteServ(user->fd,"306 %s :You have been marked as being away",user->nick); + FOREACH_MOD(I_OnSetAway,OnSetAway(user)); } else { *user->awaymsg = 0; WriteServ(user->fd,"305 %s :You are no longer marked as being away",user->nick); + FOREACH_MOD(I_OnCancelAway,OnCancelAway(user)); } } |