mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Don't show join messages on subsequent /join commands
This commit is contained in:
parent
8fadb1032a
commit
014f0f7a91
@ -1728,7 +1728,7 @@ cmd_join(gchar **args, struct cmd_help_t help)
|
||||
presence_join_room(room, nick, passwd);
|
||||
muc_join(room, nick, passwd, FALSE);
|
||||
} else if (muc_roster_complete(room)) {
|
||||
ui_room_join(room, TRUE);
|
||||
ui_switch_to_room(room);
|
||||
}
|
||||
|
||||
jid_destroy(room_arg);
|
||||
|
@ -1328,6 +1328,15 @@ _ui_room_join(const char * const room, gboolean focus)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_switch_to_room(const char * const room)
|
||||
{
|
||||
ProfWin *window = wins_get_by_recipient(room);
|
||||
int num = wins_get_num(window);
|
||||
num = wins_get_num(window);
|
||||
ui_switch_win(num);
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_room_role_change(const char * const room, const char * const role)
|
||||
{
|
||||
@ -3059,5 +3068,6 @@ ui_init_module(void)
|
||||
ui_room_hide_occupants = _ui_room_hide_occupants;
|
||||
ui_room_role_change = _ui_room_role_change;
|
||||
ui_room_affiliation_change = _ui_room_affiliation_change;
|
||||
ui_switch_to_room = _ui_switch_to_room;
|
||||
}
|
||||
|
||||
|
@ -130,6 +130,7 @@ void (*ui_recipient_gone)(const char * const barejid);
|
||||
void (*ui_outgoing_msg)(const char * const from, const char * const to,
|
||||
const char * const message);
|
||||
void (*ui_room_join)(const char * const room, gboolean focus);
|
||||
void (*ui_switch_to_room)(const char * const room);
|
||||
void (*ui_room_role_change)(const char * const room, const char * const role);
|
||||
void (*ui_room_affiliation_change)(const char * const room, const char * const affiliation);
|
||||
void (*ui_room_roster)(const char * const room, GList *roster, const char * const presence);
|
||||
|
Loading…
Reference in New Issue
Block a user