summaryrefslogtreecommitdiff
path: root/src/cmd_privmsg.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:55:43 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-12 20:55:43 +0000
commit3dc2055bb03658cb2a1ecab7177519290f8532af (patch)
tree26d49f5e31d6dd035d6433cfbfa29e117f620ab6 /src/cmd_privmsg.cpp
parentec2106579c77a98dfdb209864a1e1b5ae1f07e7f (diff)
While I'm on the macro warpath: start using IS_AWAY. Also, show the away message all the time, don't check IS_LOCAL. We used to not propegate away messages, but that hasn't been the case for ..fucking years? :p. WHOIS works correctly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7002 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_privmsg.cpp')
-rw-r--r--src/cmd_privmsg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp
index 1614a62dc..6eedf5276 100644
--- a/src/cmd_privmsg.cpp
+++ b/src/cmd_privmsg.cpp
@@ -126,7 +126,7 @@ CmdResult cmd_privmsg::Handle (const char** parameters, int pcnt, userrec *user)
dest = ServerInstance->FindNick(parameters[0]);
if (dest)
{
- if ((IS_LOCAL(user)) && (*dest->awaymsg))
+ if (IS_AWAY(dest))
{
/* auto respond with aweh msg */
user->WriteServ("301 %s %s :%s",user->nick,dest->nick,dest->awaymsg);