kike: remember to send back AWAY messages

This commit is contained in:
Přemysl Eric Janouch 2014-08-04 08:17:34 +02:00
parent a5953147c3
commit 3b69dfb583
1 changed files with 2 additions and 0 deletions

View File

@ -1297,6 +1297,8 @@ irc_handle_privmsg (const struct irc_message *msg, struct client *c)
{
irc_send (client, ":%s!%s@%s PRIVMSG %s :%s",
c->nickname, c->username, c->hostname, target, text);
if (client->away_message)
irc_send_reply (c, IRC_RPL_AWAY, target, client->away_message);
return;
}