mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-10-27 06:05:38 +00:00
Don't open banlist in empty channel tab
This commit is contained in:
1 parent
e2edbfe47d
commit
d941af5a6f
1 file changed
+1
-1
@@ -775,7 +775,7 @@ banlist_opengui (struct session *sess)
|
||||
GtkWidget *table, *vbox, *bbox;
|
||||
char tbuf[256];
|
||||
|
||||
if (sess->type != SESS_CHANNEL)
|
||||
if (sess->type != SESS_CHANNEL || sess->channel[0] == 0)
|
||||
{
|
||||
fe_message (_("You can only open the Ban List window while in a channel tab."), FE_MSG_ERROR);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user