src/protocols/irc/parse.c

changeset 6350
22dfc953f2fb
parent 6333
551f4a5b3c33
child 6415
bde6096fb3c7
--- a/src/protocols/irc/parse.c	Thu Jul 31 23:08:54 2003 +0000
+++ b/src/protocols/irc/parse.c	Thu Jul 31 23:21:36 2003 +0000
@@ -38,7 +38,6 @@
 char *irc_mirc2html(const char *string);
 
 static void irc_parse_error_cb(struct irc_conn *irc, char *input);
-static void irc_default_cb(struct irc_conn *irc, char *input);
 
 static char *irc_mirc_colors[16] = {
 	"white", "black", "blue", "dark green", "red", "brown", "purple",
@@ -72,6 +71,7 @@
 	{ "401", "nt:", irc_msg_nonick },	/* No such nick/chan		*/
 	{ "404", "nt:", irc_msg_nosend },	/* Cannot send to chan		*/
 	{ "421", "nv:", irc_msg_unknown },	/* Unknown command		*/
+	{ "422", "nv:", irc_msg_endmotd },	/* No MOTD available		*/
 	{ "433", "vn:", irc_msg_nickused },	/* Nickname already in use	*/
 	{ "442", "nc:", irc_msg_notinchan },	/* Not in channel		*/
 	{ "473", "nc:", irc_msg_inviteonly },	/* Tried to join invite-only	*/
@@ -269,7 +269,7 @@
 			gc = gaim_account_get_connection(irc->account);
 			if (!gc)
 				return NULL;
-			buf = g_strdup_printf(_("Reply time from %s: %d seconds"), from, time(NULL) - timestamp);
+			buf = g_strdup_printf(_("Reply time from %s: %lu seconds"), from, time(NULL) - timestamp);
 			gaim_notify_info(gc, _("PONG"), _("CTCP PING reply"), buf);
 			g_free(buf);
 			return NULL;

mercurial