Closed fahadmehar closed 8 years ago
You shouldn't modify the bchans
list in the script. In order to add new bad channels, do:
.ap:add bchans global #badchan1 #badchan2 #badchan3 ...
You can also add channel-specific bad channels by specifying the channel name instead of global
.
# Commands: #
# DCC: #
# .ap:import <oldchan> <*/newchan> (This sets the AP settings #
# of <oldchan> on <newchan> or all chans if *) #
# .ap:reset <*/chan> (This will reset the AP settings of chan #
# or all chans if * to the default settings) #
# .ap:disable <*/chan> (This will disable all protections on #
# chan or all chans if *) #
# .ap:monitor (displays info about followed punishments) #
# .ap:add <list> <chan/global> <elements> #
# .ap:rem <list> <chan/global> <elements> #
# .ap:list <list> <chan/global> #
# .ap:priv <set/list> <setting> <value> (priv flood settings) #
# ** Available lists: bchans, bnicks, bidents, bwords, adexempts, #
# droneexempts, adwords, bctcrs & greetexempts. #
# #
# All protections are enabled via .chanset DCC command. #
# Use: .chaninfo to know AllProtection's settings (ap:<setting>) #
# NOTE: To set an AP channel setting use: (* means all channels) #
# .chanset <chan> <setting> <value> <btime> <punish> <btype> #
If I add .ap:add bchans global #sex #gay } It will ban those who are on channel for example channel like
I Load
You can use wild cards such as #*sex*
, there's no need to .save
or .rehash
. How are you testing this? The bot won't ban you if you are its master.
# * AllProtection exempts channel ops, friends (+f) and masters (+mo) from protection by default.
# That means users with the +f or +mo flags will not be affected by any protection.
# (You can add hosts to the +f handle if you don't want the bot to ban them). To prevent from banning
# ChanServ, add chanserv to your bot with the +f or +mo flag.
No, I am testing on other bnc which is not master.
Nothing is happening friend let me tell you how I enable Bad Channels on DCC.
I put in DCC. .chanset #ChatWorld ap:bchans "+ 90 kb 2 0"
Then I put in DCC. .ap:add bchans global #sex #gay #incest
Nothing happens? I have test on other IPS also even in BNC.
Could you paste the output of .ap:list bchans global
and .ap:list bchans #yourchannel
? Note that if you have a channel-specific bchans
list then the global list will be ignored.
Also, since the channel names are case-sensitive (which needs to be fixed) so when you add #sex
it'll only match #sex
and not #Sex
(in case that's what is happening in your case).
.ap:add bchans global #sex #gay #incest <--- Like this I add channels all are in small letters. I try both.
AP: global bchans list: #example1,#example2,#example3,#sex,#gay,#incest,#sex,#gay,#incest
AP: global bchans list: #example1,#example2,#example3,#sex,#gay,#incest,#sex,#gay,#incest
What about your channel-specific list?
Please try give a full report including the requested channel-specific list and the whois response of the offending user (to see the channels the user resides in).
Rite now it works after I Restart my Bot. But it does not give Warning it simple ban
you set the punishment to kb
, if you want the bot to warn then add w
(i.e. w:kb
)
Please give me full command how to set w:kb? I try to set but error.
Everything is documented in the script, please read the comments to get all the details.
# Use .chanset #channel ap:bchans + <btime> <pmeth> <btype> <scan-time> (in DCC to enable)
# <scan-time> is the time in minutes in which the bot will scan the channel for users in bad chans. (0 disable)
# Set default value here: (+ enabled, - disabled)
Punishment methods (pmeth):
## Available punishment methods:
# v : Void - do nothing
# w : Warn offender
# k : Kick offender
# b : Ban offender
# kb : Kick + Ban offender
# bk : Ban + Kick offender
# kl : KLine offender
# kil: Kill offender
#
## You can use them like this for example:
# w:k:kb
# this means, first Warn then Kick then Kickban. (if offence is repeated ofcourse)
## these steps will be triggered if the offences happend during <pwait> seconds.
# NOTE: These methods are not applicable on all flood types. I only applied this
# feature on the flood types I think they're needed.
Which means in your case, the command would be (do not use quotes):
.chanset #chatworld ap:bchans + 90 w:kb 2 0
My Problem is fix thanks. I don't know how to Enable AntiSpam? Do I have to set from script of DCC? I Enable from DCC by chanset #chatworld ap:antispam - + 10 10
How 2nd nick will come in channel after enable Anti-Spam bot will lag or work fine? I have this bot only on ONE channel.
That's a different issue, if you find a problem with the antispam bot then please open a new issue for it but make sure to carefully read all its configuration and properly use it before posting here.
I Enable Bad Channel on DCC. But it seems to be not working... I also join some bad channels are enabling but not working... on TCL allprotectionv4.9b4 Please guide me if i am doing mistake...
on DCC I put
.chanset #channel ap:bchans "+ 90 kb 2 0"
& I put bad channel here