summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 a62077097..0e4003c2e 100644
--- a/src/cmd_privmsg.cpp
+++ b/src/cmd_privmsg.cpp
@@ -127,7 +127,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user)
dest = Find(parameters[0]);
if (dest)
{
- if (strcmp(dest->awaymsg,""))
+ if (*dest->awaymsg)
{
/* auto respond with aweh msg */
WriteServ(user->fd,"301 %s %s :%s",user->nick,dest->nick,dest->awaymsg);