aboutsummaryrefslogtreecommitdiff
path: root/src/kike.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-04 08:17:34 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-04 08:17:34 +0200
commit3b69dfb583a15ad42cf155c3df25ad0a56350655 (patch)
treedd3cb54e2af1cae7fe29f139ae88a6a16c3abd14 /src/kike.c
parenta5953147c3df8d8bb0b57ed2feb07c125143b84a (diff)
downloadxK-3b69dfb583a15ad42cf155c3df25ad0a56350655.tar.gz
xK-3b69dfb583a15ad42cf155c3df25ad0a56350655.tar.xz
xK-3b69dfb583a15ad42cf155c3df25ad0a56350655.zip
kike: remember to send back AWAY messages
Diffstat (limited to 'src/kike.c')
-rw-r--r--src/kike.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kike.c b/src/kike.c
index 7639248..aea6612 100644
--- a/src/kike.c
+++ b/src/kike.c
@@ -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;
}