comparison mcabber/src/commands.c @ 958:30b799632653

Cosmetics (change a variable name)
author Mikael Berthe <mikael@lilotux.net>
date Sat, 09 Sep 2006 13:07:59 +0200
parents 82aaa7afbd03
children 90ff94f0fbbb
comparison
equal deleted inserted replaced
957:82aaa7afbd03 958:30b799632653
675 } 675 }
676 676
677 static void do_group(char *arg) 677 static void do_group(char *arg)
678 { 678 {
679 gpointer group; 679 gpointer group;
680 guint leave_windowbuddy; 680 guint leave_buddywindow;
681 681
682 if (!*arg) { 682 if (!*arg) {
683 scr_LogPrint(LPRINT_NORMAL, "Missing parameter."); 683 scr_LogPrint(LPRINT_NORMAL, "Missing parameter.");
684 return; 684 return;
685 } 685 }
690 if (!group) return; 690 if (!group) return;
691 691
692 // We'll have to redraw the chat window if we're not currently on the group 692 // We'll have to redraw the chat window if we're not currently on the group
693 // entry itself, because it means we'll have to leave the current buddy 693 // entry itself, because it means we'll have to leave the current buddy
694 // chat window. 694 // chat window.
695 leave_windowbuddy = (group != BUDDATA(current_buddy)); 695 leave_buddywindow = (group != BUDDATA(current_buddy));
696 696
697 if (!(buddy_gettype(group) & ROSTER_TYPE_GROUP)) { 697 if (!(buddy_gettype(group) & ROSTER_TYPE_GROUP)) {
698 scr_LogPrint(LPRINT_NORMAL, "You need to select a group."); 698 scr_LogPrint(LPRINT_NORMAL, "You need to select a group.");
699 return; 699 return;
700 } 700 }
711 return; 711 return;
712 } 712 }
713 713
714 buddylist_build(); 714 buddylist_build();
715 update_roster = TRUE; 715 update_roster = TRUE;
716 if (leave_windowbuddy) scr_ShowBuddyWindow(); 716 if (leave_buddywindow) scr_ShowBuddyWindow();
717 } 717 }
718 718
719 static int send_message_to(const char *jid, const char *msg, const char *subj) 719 static int send_message_to(const char *jid, const char *msg, const char *subj)
720 { 720 {
721 char *bare_jid, *rp; 721 char *bare_jid, *rp;