summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-18 15:31:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-18 15:31:00 +0000
commit2cbe24c1380d2a5fce858d3068a114c3de33a969 (patch)
treeae05f20ba14a7ce7abdbfef505a8333fe6441482 /src
parent0133bcc809dc3086c00b97b5d37b8d33af66bb3c (diff)
Optimized out a strcmp for away message
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2560 e03df62e-2008-0410-955e-edbf42e46eb7
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);