summaryrefslogtreecommitdiff
path: root/src/cmd_privmsg.cpp
diff options
context:
space:
mode:
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);