Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
3707:c1254110070a | 3708:da6e3c984985 |
---|---|
911 GTK_SIGNAL_FUNC(right_click_chat), b); | 911 GTK_SIGNAL_FUNC(right_click_chat), b); |
912 gtk_list_insert_items(GTK_LIST(b->list), g_list_append(NULL, list_item), pos); | 912 gtk_list_insert_items(GTK_LIST(b->list), g_list_append(NULL, list_item), pos); |
913 gtk_widget_show(list_item); | 913 gtk_widget_show(list_item); |
914 } | 914 } |
915 | 915 |
916 void add_chat_buddy(struct conversation *b, char *buddy) | 916 void add_chat_buddy(struct conversation *b, char *buddy, char *extra_msg) |
917 { | 917 { |
918 char *name = g_strdup(buddy); | 918 char *name = g_strdup(buddy); |
919 char tmp[BUF_LONG]; | 919 char tmp[BUF_LONG]; |
920 int pos; | 920 int pos; |
921 | 921 |
931 | 931 |
932 if (b->makesound) | 932 if (b->makesound) |
933 play_sound(SND_CHAT_JOIN); | 933 play_sound(SND_CHAT_JOIN); |
934 | 934 |
935 if (chat_options & OPT_CHAT_LOGON) { | 935 if (chat_options & OPT_CHAT_LOGON) { |
936 g_snprintf(tmp, sizeof(tmp), _("%s entered the room."), name); | 936 if (!extra_msg) |
937 g_snprintf(tmp, sizeof(tmp), _("%s entered the room."), name); | |
938 else | |
939 g_snprintf(tmp, sizeof(tmp), _("%s [<I>%s</I>] entered the room."), name, | |
940 extra_msg); | |
937 write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1); | 941 write_to_conv(b, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1); |
938 } | 942 } |
939 } | 943 } |
940 | 944 |
941 | 945 |