diff options
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r-- | src/common/proto-irc.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index db770511..4fd8deb7 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -466,6 +466,8 @@ process_numeric (session * sess, int n, if (prefs.hex_irc_whois_front) whois_sess = serv->front_session; + char *ex; + switch (n) { case 1: @@ -898,6 +900,20 @@ process_numeric (session * sess, int n, goto def; break; + case 730: /* RPL_MONONLINE */ + ex = strchr (word[4], '!'); /* only send the nick */ + if (ex) + ex[0] = 0; + notify_set_online (serv, word[4] + 1); + break; + + case 731: /* RPL_MONOFFLINE */ + ex = strchr (word[4], '!'); /* only send the nick */ + if (ex) + ex[0] = 0; + notify_set_offline (serv, word[4] + 1, FALSE); + break; + case 903: /* successful SASL auth */ case 904: /* aborted SASL auth */ case 905: /* failed SASL auth */ |