diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-07-22 13:25:52 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-07-22 13:25:52 +0200 |
commit | d004891a2902d53a5545c4d5e026cbff6bb36a1f (patch) | |
tree | 8803c94b44eab0994aa5ebc94a503e076b4d287d /src/ui/core.c | |
parent | 4a0fa1cf9eec0d12477f3feffa52b9d27ff6a2e0 (diff) | |
download | profani-tty-d004891a2902d53a5545c4d5e026cbff6bb36a1f.tar.gz |
Reduce scope of num in ui_print_system_msg_from_recipient()
Diffstat (limited to 'src/ui/core.c')
-rw-r--r-- | src/ui/core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index c758ba47..3e083947 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -742,14 +742,12 @@ ui_print_system_msg_from_recipient(const char *const barejid, const char *messag ProfChatWin *chatwin = wins_get_chat(barejid); ProfWin *window = (ProfWin*)chatwin; if (window == NULL) { - int num = 0; window = wins_new_chat(barejid); if (window) { chatwin = (ProfChatWin*)window; - num = wins_get_num(window); + int num = wins_get_num(window); status_bar_active(num, WIN_CHAT, chatwin->barejid); } else { - num = 0; window = wins_get_console(); status_bar_active(1, WIN_CONSOLE, "console"); } |