Mercurial > pidgin.yaz
comparison src/protocols/irc/msgs.c @ 12001:8bcccf2988fa
[gaim-migrate @ 14294]
How does this look?
1. If an IRC account sets itself to "away" but does not enter a message,
then use a default away message of "Away"
2. Sign-on-as-away for IRC
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 07 Nov 2005 04:49:23 +0000 |
parents | 3ba50c385299 |
children | 1019f1d510d6 |
comparison
equal
deleted
inserted
replaced
12000:77fc8a9f0668 | 12001:8bcccf2988fa |
---|---|
435 } | 435 } |
436 | 436 |
437 void irc_msg_endmotd(struct irc_conn *irc, const char *name, const char *from, char **args) | 437 void irc_msg_endmotd(struct irc_conn *irc, const char *name, const char *from, char **args) |
438 { | 438 { |
439 GaimConnection *gc; | 439 GaimConnection *gc; |
440 GaimStatus *status; | |
440 GaimBlistNode *gnode, *cnode, *bnode; | 441 GaimBlistNode *gnode, *cnode, *bnode; |
441 | 442 |
442 gc = gaim_account_get_connection(irc->account); | 443 gc = gaim_account_get_connection(irc->account); |
443 if (!gc) | 444 if (!gc) |
444 return; | 445 return; |
445 | 446 |
446 gaim_connection_set_state(gc, GAIM_CONNECTED); | 447 gaim_connection_set_state(gc, GAIM_CONNECTED); |
448 | |
449 /* If we're away then set our away message */ | |
450 status = gaim_account_get_active_status(irc->account); | |
451 if (!gaim_status_get_type(status) != GAIM_STATUS_AVAILABLE) | |
452 { | |
453 GaimPluginProtocolInfo *prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | |
454 prpl_info->set_status(irc->account, status); | |
455 } | |
447 | 456 |
448 /* this used to be in the core, but it's not now */ | 457 /* this used to be in the core, but it's not now */ |
449 for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next) { | 458 for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next) { |
450 if(!GAIM_BLIST_NODE_IS_GROUP(gnode)) | 459 if(!GAIM_BLIST_NODE_IS_GROUP(gnode)) |
451 continue; | 460 continue; |