Don't open banlist in empty channel tab

This commit is contained in:
TingPing 2013-10-13 12:54:14 -04:00
parent e2edbfe47d
commit d941af5a6f
1 changed files with 1 additions and 1 deletions

View File

@ -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;