# HG changeset patch # User Eric Warmenhoven # Date 955820096 0 # Node ID 15a09c1715ee77c4da708f5c7832395b05667633 # Parent 395a8593918f61e26426d6394bc858ea53bab0b9 [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 diff -r 395a8593918f -r 15a09c1715ee src/conversation.c --- 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); }