mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -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:
parent
ef86ec6240
commit
62103665e2
@ -4309,12 +4309,6 @@ cmd_room(ProfWin *window, const char *const command, gchar **args)
|
|||||||
|
|
||||||
ProfMucWin *mucwin = (ProfMucWin*)window;
|
ProfMucWin *mucwin = (ProfMucWin*)window;
|
||||||
assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
|
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) {
|
if (g_strcmp0(args[0], "accept") == 0) {
|
||||||
gboolean requires_config = muc_requires_config(mucwin->roomjid);
|
gboolean requires_config = muc_requires_config(mucwin->roomjid);
|
||||||
|
Loading…
Reference in New Issue
Block a user