From d941af5a6f24c3316c6eb5a19ce9c910e63c50ff Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 13 Oct 2013 12:54:14 -0400 Subject: Don't open banlist in empty channel tab --- src/fe-gtk/banlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fe-gtk/banlist.c b/src/fe-gtk/banlist.c index 27aee073..be7873d5 100644 --- a/src/fe-gtk/banlist.c +++ b/src/fe-gtk/banlist.c @@ -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; -- cgit 1.4.1