comparison src/buddy_chat.c @ 2820:b917845dad3c

[gaim-migrate @ 2833] remove chat reason committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 30 Nov 2001 21:16:28 +0000
parents f3c094e78609
children 87d11d2a7d59
comparison
equal deleted inserted replaced
2819:bcc9d7a0015d 2820:b917845dad3c
956 write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time(NULL)); 956 write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time(NULL));
957 } 957 }
958 } 958 }
959 959
960 960
961 void remove_chat_buddy(struct conversation *b, char *buddy) 961 void remove_chat_buddy(struct conversation *b, char *buddy, char *reason)
962 { 962 {
963 GList *names = b->in_room; 963 GList *names = b->in_room;
964 GList *items = GTK_LIST(b->list)->children; 964 GList *items = GTK_LIST(b->list)->children;
965 965
966 char tmp[BUF_LONG]; 966 char tmp[BUF_LONG];
996 996
997 if (b->makesound && (sound_options & OPT_SOUND_CHAT_PART)) 997 if (b->makesound && (sound_options & OPT_SOUND_CHAT_PART))
998 play_sound(CHAT_LEAVE); 998 play_sound(CHAT_LEAVE);
999 999
1000 if (chat_options & OPT_CHAT_LOGON) { 1000 if (chat_options & OPT_CHAT_LOGON) {
1001 g_snprintf(tmp, sizeof(tmp), _("%s left the room."), buddy); 1001 if (reason && *reason)
1002 g_snprintf(tmp, sizeof(tmp), _("%s left the room (%s)."), buddy, reason);
1003 else
1004 g_snprintf(tmp, sizeof(tmp), _("%s left the room."), buddy);
1002 write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time(NULL)); 1005 write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time(NULL));
1003 } 1006 }
1004 } 1007 }
1005 1008
1006 1009