diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 13:00:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 13:00:43 +0000 |
commit | fbd9fad27b8f03f6d36f097f944fffb0531bf2e2 (patch) | |
tree | 3a1a676a40bf75858c69b63941ce16066b8f9c26 /src/cmd_privmsg.cpp | |
parent | 6725061d066929143d38f8d32cf032d9968c39f4 (diff) |
Fixes for (unlikely and theoretical) desync in TOPIC
Fix to not bother trying to write away response if user is not local
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3093 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 883a75d47..35707d5a3 100644 --- a/src/cmd_privmsg.cpp +++ b/src/cmd_privmsg.cpp @@ -135,7 +135,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user) dest = Find(parameters[0]); if (dest) { - if (*dest->awaymsg) + if ((IS_LOCAL(user)) && (*dest->awaymsg)) { /* auto respond with aweh msg */ WriteServ(user->fd,"301 %s %s :%s",user->nick,dest->nick,dest->awaymsg); |