mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-06 03:02:30 +01:00
Don't open banlist in empty channel tab
This commit is contained in:
parent
e2edbfe47d
commit
d941af5a6f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user