Mercurial > pidgin.yaz
diff src/buddy_chat.c @ 3708:da6e3c984985
[gaim-migrate @ 3841]
host mask on join thanks to birme (required change to the function)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 15 Oct 2002 22:27:57 +0000 |
parents | 21d16e3164eb |
children | d7e83b4db191 |
line wrap: on
line diff
--- a/src/buddy_chat.c Tue Oct 15 20:02:14 2002 +0000 +++ b/src/buddy_chat.c Tue Oct 15 22:27:57 2002 +0000 @@ -913,7 +913,7 @@ gtk_widget_show(list_item); } -void add_chat_buddy(struct conversation *b, char *buddy) +void add_chat_buddy(struct conversation *b, char *buddy, char *extra_msg) { char *name = g_strdup(buddy); char tmp[BUF_LONG]; @@ -933,7 +933,11 @@ play_sound(SND_CHAT_JOIN); if (chat_options & OPT_CHAT_LOGON) { - g_snprintf(tmp, sizeof(tmp), _("%s entered the room."), name); + if (!extra_msg) + g_snprintf(tmp, sizeof(tmp), _("%s entered the room."), name); + else + g_snprintf(tmp, sizeof(tmp), _("%s [<I>%s</I>] entered the room."), name, + extra_msg); write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1); } }