1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Remove unused code in cmd_room() about win num

There is actually no reason to get the window number here.
This commit is contained in:
Michael Vetter 2019-08-23 10:04:54 +02:00
parent ef86ec6240
commit 62103665e2

View File

@ -4309,12 +4309,6 @@ cmd_room(ProfWin *window, const char *const command, gchar **args)
ProfMucWin *mucwin = (ProfMucWin*)window;
assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
int num = wins_get_num(window);
int ui_index = num;
if (ui_index == 10) {
ui_index = 0;
}
if (g_strcmp0(args[0], "accept") == 0) {
gboolean requires_config = muc_requires_config(mucwin->roomjid);