Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv2552/src
Modified Files:
buddy_chat.c gaim.h
Log Message:
remove chat reason
Index: buddy_chat.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/buddy_chat.c,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -d -r1.132 -r1.133
--- buddy_chat.c 2001/11/15 22:47:03 1.132
+++ buddy_chat.c 2001/11/30 21:16:27 1.133
@@ -958,7 +958,7 @@
}
-void remove_chat_buddy(struct conversation *b, char *buddy)
+void remove_chat_buddy(struct conversation *b, char *buddy, char *reason)
{
GList *names = b->in_room;
GList *items = GTK_LIST(b->list)->children;
@@ -998,7 +998,10 @@
play_sound(CHAT_LEAVE);
if (chat_options & OPT_CHAT_LOGON) {
- g_snprintf(tmp, sizeof(tmp), _("%s left the room."), buddy);
+ if (reason && *reason)
+ g_snprintf(tmp, sizeof(tmp), _("%s left the room (%s)."), buddy, reason);
+ else
+ g_snprintf(tmp, sizeof(tmp), _("%s left the room."), buddy);
write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time(NULL));
}
}
Index: gaim.h
===================================================================
RCS file: /cvsroot/gaim/gaim/src/gaim.h,v
retrieving revision 1.299
retrieving revision 1.300
diff -u -d -r1.299 -r1.300
--- gaim.h 2001/11/26 22:33:21 1.299
+++ gaim.h 2001/11/30 21:16:27 1.300
@@ -326,7 +326,7 @@
extern void chat_set_topic(struct conversation*, char*, char*);
extern void add_chat_buddy(struct conversation *, char *);
extern void rename_chat_buddy(struct conversation *, char *, char *);
-extern void remove_chat_buddy(struct conversation *, char *);
+extern void remove_chat_buddy(struct conversation *, char *, char *);
/* Functions in conversation.c */
extern void write_to_conv(struct conversation *, char *, int, char *, time_t);
|