summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-08 09:26:40 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-08 09:26:40 +0200
commit370769f7594dbab367172f15902e28b1a7b7f436 (patch)
treebce4a5ad144d80c283bb2f11e024e36bd2cfb476 /src
parent9313edec34b760ed84529e77e43a952b93e66b40 (diff)
downloadweechat-370769f7594dbab367172f15902e28b1a7b7f436.zip
irc: send WHO command to check away nicks only if channel was not parted
Diffstat (limited to 'src')
-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)