comparison mcabber/src/commands.c @ 1130:b2040a7fb7fc

Refresh chat buffer when sending a message in non-chatmode When chat mode is off and we send a message, chat mode is enabled but the contact buffer isn't displayed.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 21 Jan 2007 15:13:36 +0100
parents 771eb6aa2d41
children 5d7c05932b13
comparison
equal deleted inserted replaced
1129:1a109ebf3f24 1130:b2040a7fb7fc
980 static void do_say(char *arg) 980 static void do_say(char *arg)
981 { 981 {
982 gpointer bud; 982 gpointer bud;
983 983
984 scr_set_chatmode(TRUE); 984 scr_set_chatmode(TRUE);
985 scr_ShowBuddyWindow();
985 986
986 if (!current_buddy) { 987 if (!current_buddy) {
987 scr_LogPrint(LPRINT_NORMAL, 988 scr_LogPrint(LPRINT_NORMAL,
988 "Whom are you talking to? Please select a buddy."); 989 "Whom are you talking to? Please select a buddy.");
989 return; 990 return;
1071 "Use \"%s begin\" first.", mkcmdstr("msay")); 1072 "Use \"%s begin\" first.", mkcmdstr("msay"));
1072 goto do_msay_return; 1073 goto do_msay_return;
1073 } 1074 }
1074 1075
1075 scr_set_chatmode(TRUE); 1076 scr_set_chatmode(TRUE);
1077 scr_ShowBuddyWindow();
1076 1078
1077 if (!strcasecmp(subcmd, "send_to")) { 1079 if (!strcasecmp(subcmd, "send_to")) {
1078 int err = FALSE; 1080 int err = FALSE;
1079 gchar *msg_utf8; 1081 gchar *msg_utf8;
1080 // Let's send to the specified JID. We leave now if there 1082 // Let's send to the specified JID. We leave now if there