summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-06-22 13:59:43 +0100
committerPatrick <tingping@tingping.se>2021-06-22 09:50:22 -0500
commit199c03c8c671d86819cace9a75d7f6bca54b6589 (patch)
tree54f6919e6d11e84b3d8acf0ef6cb8e051c4e0125 /src
parentcdcdeacd63d534e1624bedbd97c9b921cb703aa7 (diff)
Fix parsing +beI lists on InspIRCd.
Diffstat (limited to 'src')
-rw-r--r--src/common/proto-irc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index e0aa888e..501bf5a0 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -813,7 +813,7 @@ process_numeric (session * sess, int n,
 		break;
 
 	case 346:	/* +I-list entry */
-		if (!inbound_banlist (sess, atol (word[7]), word[4], word[5], word[6], 346,
+		if (!inbound_banlist (sess, atol (STRIP_COLON (word, word_eol, 7)), word[4], word[5], word[6], 346,
 									 tags_data))
 			goto def;
 		break;
@@ -824,7 +824,7 @@ process_numeric (session * sess, int n,
 		break;
 
 	case 348:	/* +e-list entry */
-		if (!inbound_banlist (sess, atol (word[7]), word[4], word[5], word[6], 348,
+		if (!inbound_banlist (sess, atol (STRIP_COLON (word, word_eol, 7)), word[4], word[5], word[6], 348,
 									 tags_data))
 			goto def;
 		break;
@@ -849,7 +849,7 @@ process_numeric (session * sess, int n,
 		break;
 
 	case 367: /* banlist entry */
-		if (!inbound_banlist (sess, atol (word[7]), word[4], word[5], word[6], 367,
+		if (!inbound_banlist (sess, atol (STRIP_COLON (word, word_eol, 7)), word[4], word[5], word[6], 367,
 									 tags_data))
 			goto def;
 		break;