diff src/protocols/irc/parse.c @ 6350:34c07f5f34a0

[gaim-migrate @ 6849] -Compile warning fixes from The Man (Paco-Paco) -2 memleak fixes from me. One of them leaked the size of a chat message when either sending or receiving, I forgot which (my bad!) -Hopefully make AIM correctly refetch your buddy list when AOL doesn't send it to you the first time -Maybe something else -Chocolate -Vanilla -Strawberry -Napoleon committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 31 Jul 2003 23:21:36 +0000
parents e06e04e44914
children e3be6b9744b7
line wrap: on
line diff
--- 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;