summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <TingPing@users.noreply.github.com>2013-10-13 12:54:14 -0400
committerTingPing <TingPing@users.noreply.github.com>2013-10-13 12:54:14 -0400
commitd941af5a6f24c3316c6eb5a19ce9c910e63c50ff (patch)
tree9df2735bdcd2b4aa2610d3e94169d828c7f29763 /src
parente2edbfe47d89059f2020baccd76ad4715ef87871 (diff)
Don't open banlist in empty channel tab
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/banlist.c2
1 files changed, 1 insertions, 1 deletions
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;