summary refs log tree commit diff stats
path: root/src/common/proto-irc.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-08-20 00:24:11 -0400
committerTingPing <tingping@tingping.se>2013-08-20 00:24:20 -0400
commit77c1edbe13e1d4a2697e184a01d174004dd9e25b (patch)
treecef2bff93cd6d0b5af8aa173aafdfa8951c1688b /src/common/proto-irc.c
parent46c32952b06452a219424ed3e5a6c1da92691a49 (diff)
Handle lists in MONITOR replies
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r--src/common/proto-irc.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index 642cd056..527a7605 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -465,8 +465,6 @@ process_numeric (session * sess, int n,
 	server *serv = sess->server;
 	/* show whois is the server tab */
 	session *whois_sess = serv->server_session;
-
-	char *ex;
 	
 	/* unless this setting is on */
 	if (prefs.hex_irc_whois_front)
@@ -942,17 +940,11 @@ process_numeric (session * sess, int n,
 		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, tags_data);
+		notify_set_online_list (serv, word[4] + 1, tags_data);
 		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, tags_data);
+		notify_set_offline_list (serv, word[4] + 1, FALSE, tags_data);
 		break;
 
 	case 900:	/* successful SASL 'logged in as ' */