Mercurial > pidgin.yaz
changeset 118:15a09c1715ee
[gaim-migrate @ 128]
Got annoyed that when people were away, it would print their away message
without any warning that it was an auto-response.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 15 Apr 2000 17:34:56 +0000 |
parents | 395a8593918f |
children | 66ec3865bd46 |
files | src/conversation.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/conversation.c Fri Apr 14 08:41:02 2000 +0000 +++ b/src/conversation.c Sat Apr 15 17:34:56 2000 +0000 @@ -701,6 +701,7 @@ char *who = NULL; FILE *fd; char colour[10]; + struct buddy *b = NULL; if (flags & WFLAG_SYSTEM) { @@ -733,7 +734,12 @@ if (flags & WFLAG_RECV) { strcpy(colour, "#ff0000"); - who = c->name; + b = find_buddy(c->name); + if (b->uc & UC_UNAVAILABLE) { + who = malloc(strlen(c->name) + 24); + sprintf(who, "Auto-response from %s", c->name); + } else + who = c->name; } else if (flags & WFLAG_SEND) { strcpy(colour, "#0000ff"); who = current_user->username; @@ -794,6 +800,8 @@ g_free(buf); g_free(buf2); + if (flags & WFLAG_RECV && b != NULL && b->uc & UC_UNAVAILABLE) + free(who); }