summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c
index e58847283..5e1ba5d99 100644
--- a/src/plugins/irc/irc-channel.c
+++ b/src/plugins/irc/irc-channel.c
@@ -410,7 +410,7 @@ void
irc_channel_check_away (struct t_irc_server *server,
struct t_irc_channel *channel)
{
- if (channel->type == IRC_CHANNEL_TYPE_CHANNEL)
+ if ((channel->type == IRC_CHANNEL_TYPE_CHANNEL) && channel->nicks)
{
if ((IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_AWAY_CHECK) > 0)
&& ((IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_AWAY_CHECK_MAX_NICKS) == 0)