summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-05-17 02:48:32 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-05-17 02:48:32 +0200
commitef58a267b0cc5c97319a6f66dd15d99393390e2c (patch)
tree260b1273f7633a3735b44a500d4d777e8f50082d /src
parent4130954c15ab31d5019a262dcd637087fcf4ce59 (diff)
Omit CHALLENGE hashes in the server tab
Diffstat (limited to 'src')
-rw-r--r--src/common/proto-irc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index 651125e0..165478cf 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -1086,7 +1086,7 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[])
 
 		case WORDL('N','O','T','I'):
 			{
-				int id = FALSE;							/* identified */
+				int id = FALSE;								/* identified */
 				char *response;
 
 				text = word_eol[4];
@@ -1095,7 +1095,7 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[])
 					text++;
 				}
 
-				if (!strncmp (text, "CHALLENGE ", 10))		/* QuakeNet CHALLENGEAUTH upon our request */
+				if (!strncmp (text, "CHALLENGE ", 10))		/* QuakeNet CHALLENGE upon our request */
 				{
 					response = challengeauth_response (((ircnet *)serv->network)->user ? ((ircnet *)serv->network)->user : prefs.hex_irc_user_name, serv->password, word[5]);
 
@@ -1106,6 +1106,7 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[])
 						CHALLENGEAUTH_ALGO);
 
 					g_free (response);
+					return;									/* omit the CHALLENGE <hash> ALGOS message */
 				}
 
 				if (serv->have_idmsg)