diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_privmsg.cpp | 2 | ||||
-rw-r--r-- | src/cmd_who.cpp | 2 | ||||
-rw-r--r-- | src/cmd_whois.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp index 1614a62dc..6eedf5276 100644 --- a/src/cmd_privmsg.cpp +++ b/src/cmd_privmsg.cpp @@ -126,7 +126,7 @@ CmdResult cmd_privmsg::Handle (const char** parameters, int pcnt, userrec *user) dest = ServerInstance->FindNick(parameters[0]); if (dest) { - if ((IS_LOCAL(user)) && (*dest->awaymsg)) + if (IS_AWAY(dest)) { /* auto respond with aweh msg */ user->WriteServ("301 %s %s :%s",user->nick,dest->nick,dest->awaymsg); diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index bdbca597e..de504faf2 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -147,7 +147,7 @@ void cmd_who::SendWhoLine(userrec* user, const std::string &initial, chanrec* ch " " + u->nick + " "; /* away? */ - if (*u->awaymsg) + if (IS_AWAY(u)) { wholine.append("G"); } diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp index 43b39108b..a634e5967 100644 --- a/src/cmd_whois.cpp +++ b/src/cmd_whois.cpp @@ -57,7 +57,7 @@ void do_whois(InspIRCd* ServerInstance, userrec* user, userrec* dest,unsigned lo ServerInstance->SendWhoisLine(user, dest, 312, "%s %s %s :%s",user->nick, dest->nick, dest->server, ServerInstance->GetServerDescription(dest->server).c_str()); } - if (*dest->awaymsg) + if (IS_AWAY(dest)) { ServerInstance->SendWhoisLine(user, dest, 301, "%s %s :%s",user->nick, dest->nick, dest->awaymsg); } |