diff libpurple/protocols/irc/parse.c @ 15447:8c81db398f56

This should fix up IRC logins for servers which do not provide an MOTD, which is not required by the spec. All servers MUST send 251 & 255 numerics, so now we key off those. This fixes several IRC bugs in the sourceforge tracker, which should be updated upon release.
author Ethan Blanton <elb@pidgin.im>
date Sun, 28 Jan 2007 17:02:31 +0000
parents 8ff4af28c9f9
children 32c366eeeb99
line wrap: on
line diff
--- a/libpurple/protocols/irc/parse.c	Sun Jan 28 17:01:22 2007 +0000
+++ b/libpurple/protocols/irc/parse.c	Sun Jan 28 17:02:31 2007 +0000
@@ -53,6 +53,8 @@
 	void (*cb)(struct irc_conn *irc, const char *name, const char *from, char **args);
 } _irc_msgs[] = {
 	{ "005", "n*", irc_msg_features },	/* Feature list			*/
+	{ "251", "n:", irc_msg_luser },		/* Client & Server count	*/
+	{ "255", "n:", irc_msg_luser },		/* Client & Server count Mk. II	*/
 	{ "301", "nn:", irc_msg_away },		/* User is away			*/
 	{ "303", "n:", irc_msg_ison },		/* ISON reply			*/
 	{ "311", "nnvvv:", irc_msg_whois },	/* Whois user			*/
@@ -73,13 +75,12 @@
 	{ "366", "nc:", irc_msg_names },	/* End of names			*/
 	{ "372", "n:", irc_msg_motd },		/* MOTD				*/
 	{ "375", "n:", irc_msg_motd },		/* Start MOTD			*/
-	{ "376", "n:", irc_msg_endmotd },	/* End of MOTD			*/
+	{ "376", "n:", irc_msg_motd },		/* End of MOTD			*/
 	{ "391", "nv:", irc_msg_time },		/* Time reply			*/
 	{ "401", "nt:", irc_msg_nonick },	/* No such nick/chan		*/
 	{ "403", "nc:", irc_msg_nochan },	/* No such channel		*/
 	{ "404", "nt:", irc_msg_nosend },	/* Cannot send to chan		*/
 	{ "421", "nv:", irc_msg_unknown },	/* Unknown command		*/
-	{ "422", "nv:", irc_msg_endmotd },	/* No MOTD available		*/
 	{ "432", "vn:", irc_msg_badnick },	/* Erroneous nickname		*/
 	{ "433", "vn:", irc_msg_nickused },	/* Nickname already in use	*/
 	{ "437", "nc:", irc_msg_unavailable },  /* Nick/channel is unavailable */