diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-30 15:33:33 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-30 15:33:33 +0000 |
commit | d48726ce802019f2e1573ebef7ae9f50a14f0a31 (patch) | |
tree | 4248a0787350891b10b93e797cee7f5f112f0df9 /src/commands/cmd_away.cpp | |
parent | 6c31213a38a5f136bebe4cdbc9dea66031e9b26c (diff) |
AWAY notification for WATCH. Numerics are now sent out when a user goes away (or returns from AWAY), as well as in WATCH L (if the user is online and away).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9227 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands/cmd_away.cpp')
-rw-r--r-- | src/commands/cmd_away.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands/cmd_away.cpp b/src/commands/cmd_away.cpp index c49813b52..33e140beb 100644 --- a/src/commands/cmd_away.cpp +++ b/src/commands/cmd_away.cpp @@ -32,6 +32,7 @@ CmdResult CommandAway::Handle (const char* const* parameters, int pcnt, User *us if (MOD_RESULT != 0 && !IS_LOCAL(user)) return CMD_FAILURE; + user->awaytime = ServerInstance->Time(); strlcpy(user->awaymsg,parameters[0],MAXAWAY); user->WriteNumeric(306, "%s :You have been marked as being away",user->nick); } |