Add MONITOR support

This commit is contained in:
TingPing
2013-04-03 18:51:54 -04:00
parent 86cf7de430
commit 496ed18e85
6 changed files with 38 additions and 10 deletions

View File

@@ -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 */