Mercurial > pidgin
diff src/conversation.c @ 145:41bd1cd48571
[gaim-migrate @ 155]
Modified how the "<AUTO-REPLY>" thing works. Works better now, IMHO.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 21 Apr 2000 01:25:44 +0000 |
parents | 96f7f937eb4b |
children | b3b188f057f2 |
line wrap: on
line diff
--- a/src/conversation.c Fri Apr 21 00:03:52 2000 +0000 +++ b/src/conversation.c Fri Apr 21 01:25:44 2000 +0000 @@ -701,7 +701,6 @@ char *who = NULL; FILE *fd; char colour[10]; - struct buddy *b = NULL; if (flags & WFLAG_SYSTEM) { @@ -734,18 +733,13 @@ if (flags & WFLAG_RECV) { strcpy(colour, "#ff0000"); - b = find_buddy(c->name); - if (b && (b->uc & UC_UNAVAILABLE)) { - who = malloc(strlen(c->name) + 24); - sprintf(who, "%s: <AUTO-REPLY>", c->name); - } else - who = c->name; + who = c->name; } else if (flags & WFLAG_SEND) { strcpy(colour, "#0000ff"); who = current_user->username; } - if (flags & WFLAG_AUTO && flags & WFLAG_SEND) + if (flags & WFLAG_AUTO) sprintf(buf2, " %s", AUTO_RESPONSE); else buf2[0]=0; /* sprintf(buf2, ""); */ @@ -800,8 +794,6 @@ g_free(buf); g_free(buf2); - if (flags & WFLAG_RECV && b != NULL && b->uc & UC_UNAVAILABLE) - free(who); }