From 2cbe24c1380d2a5fce858d3068a114c3de33a969 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 Dec 2005 15:31:00 +0000 Subject: Optimized out a strcmp for away message git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2560 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_privmsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3