src/conversation.c

changeset 145
57a926105cb7
parent 128
9f9e9dd2e1a3
child 182
89c3026cc002
--- 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);
 }
 
 

mercurial