mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-11-07 00:35:39 +00:00
Add MONITOR support
This commit is contained in:
1 parent
86cf7de430
commit
496ed18e85
6 files changed
+38
-10
No files matched your search
@@ -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