comparison 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
comparison
equal deleted inserted replaced
10563:3e2cd3fe8897 10564:cdeb727d1de3
413 serv_finish_login (gc); 413 serv_finish_login (gc);
414 414
415 irc_blist_timeout(irc); 415 irc_blist_timeout(irc);
416 if (!irc->timer) 416 if (!irc->timer)
417 irc->timer = gaim_timeout_add(45000, (GSourceFunc)irc_blist_timeout, (gpointer)irc); 417 irc->timer = gaim_timeout_add(45000, (GSourceFunc)irc_blist_timeout, (gpointer)irc);
418 }
419
420 void irc_msg_time(struct irc_conn *irc, const char *name, const char *from, char **args)
421 {
422 GaimConnection *gc;
423
424 gc = gaim_account_get_connection(irc->account);
425 if (gc == NULL || args == NULL || args[2] == NULL)
426 return;
427
428 gaim_notify_message(gc, GAIM_NOTIFY_MSG_INFO, _("Time Response"),
429 _("The IRC server's local time is:"),
430 args[2], NULL, NULL);
418 } 431 }
419 432
420 void irc_msg_nochan(struct irc_conn *irc, const char *name, const char *from, char **args) 433 void irc_msg_nochan(struct irc_conn *irc, const char *name, const char *from, char **args)
421 { 434 {
422 GaimConnection *gc = gaim_account_get_connection(irc->account); 435 GaimConnection *gc = gaim_account_get_connection(irc->account);