diff src/protocols/irc/msgs.c @ 10564:cdeb727d1de3

[gaim-migrate @ 11946] IRC TIME support, thanks to Don Seiler committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Tue, 01 Feb 2005 16:13:09 +0000
parents 6ef7be688140
children 927de469483e
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c	Tue Feb 01 05:19:27 2005 +0000
+++ b/src/protocols/irc/msgs.c	Tue Feb 01 16:13:09 2005 +0000
@@ -417,6 +417,19 @@
 		irc->timer = gaim_timeout_add(45000, (GSourceFunc)irc_blist_timeout, (gpointer)irc);
 }
 
+void irc_msg_time(struct irc_conn *irc, const char *name, const char *from, char **args)
+{
+	GaimConnection *gc;
+
+	gc = gaim_account_get_connection(irc->account);
+	if (gc == NULL || args == NULL || args[2] == NULL)
+		return;
+
+	gaim_notify_message(gc, GAIM_NOTIFY_MSG_INFO, _("Time Response"),
+			    _("The IRC server's local time is:"),
+			    args[2], NULL, NULL);
+}
+
 void irc_msg_nochan(struct irc_conn *irc, const char *name, const char *from, char **args)
 {
 	GaimConnection *gc = gaim_account_get_connection(irc->account);