mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-15 18:20:20 +00:00
Add MONITOR support
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user