diff options
| author | 2005-12-18 15:31:00 +0000 | |
|---|---|---|
| committer | 2005-12-18 15:31:00 +0000 | |
| commit | 2cbe24c1380d2a5fce858d3068a114c3de33a969 (patch) | |
| tree | ae05f20ba14a7ce7abdbfef505a8333fe6441482 /src/cmd_privmsg.cpp | |
| parent | Altered version to SVN (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/cmd_privmsg.cpp')
| -rw-r--r-- | src/cmd_privmsg.cpp | 2 |
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); |
