Permalink
Browse files

A better check if chan is shared for ban sharing

  • Loading branch information...
Cizzle authored and vanosg committed Dec 2, 2017
1 parent b746d84 commit f29719989b57258218abe5c44df72c656bfff152
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mod/share.mod/share.c
@@ -882,7 +882,7 @@ static void share_pls_ban(int idx, char *par)
/* check ban against users in chans */
if ((me = module_find("irc", 0, 0)))
for (chan = chanset; chan != NULL; chan = chan->next)
if (channel_shared(chan))
if (channel_shared(chan) && (bot_chan(fr) || bot_global(fr)))
(me->funcs[IRC_CHECK_THIS_BAN]) (chan, ban, flags & MASKREC_STICKY);
noshare = 0;
}

0 comments on commit f297199

Please sign in to comment.