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;
|
GtkWidget *table, *vbox, *bbox;
|
||||||
char tbuf[256];
|
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);
|
fe_message (_("You can only open the Ban List window while in a channel tab."), FE_MSG_ERROR);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue