Sat, 15 Apr 2000 17:34:56 +0000
[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.
| src/conversation.c | file | annotate | diff | comparison | revisions |
--- 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); }