Mercurial > pidgin.yaz
diff src/protocols/irc/irc.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 | fa742ad8068c |
children | bef758a67e48 |
line wrap: on
line diff
--- a/src/protocols/irc/irc.c Mon Nov 07 03:44:30 2005 +0000 +++ b/src/protocols/irc/irc.c Mon Nov 07 04:49:23 2005 +0000 @@ -450,6 +450,8 @@ if (!strcmp(status_id, "away")) { args[0] = gaim_status_get_attr_string(status, "message"); + if ((args[0] == NULL) || (*args[0] == '\0')) + args[0] = _("Away"); irc_cmd_away(irc, "away", NULL, args); } }