hello i use Bad Ident Kicker Script v1.65.b. i used this tcl in a oper bot. but this only works when the bot is oped in a channel. but
i want it everytime bot kick/ban with bad ident whenever it
is oped or deoped.
#Set the flags for bot owners, masters, ops
#and users which to exempt from the script.
#(Usage: m, n, o, or "mnf", "fbo" etc)
set badidentexempt "mnof|mnof"
#For how long you wish (in minutes) to ban the
#user with the bad ident. (mins)
set badidbantime 30
###############################################################################
### Don't edit anything else from this point onwards, even if you know tcl! ###
###############################################################################
bind join - * join:badident
proc join:badident {nick host hand chan} {
global botnick badidents badidentchans badidentexempt badidbantime
if {(([lsearch -exact [string tolower $badidentchans] [string tolower $chan]] != -1) || ($badidentchans == "*")) && ($nick != $botnick)} {
foreach badident [string tolower $badidents] {
set badidentban1 "*!*$badident*@*"
set badidentban2 "*!*@[lindex [split $host @] 1]"
set userident "[string trimleft [string tolower [lindex [split $host "@"] 0]] "~"]"
if {[string match *$badident* [string tolower $userident]]} {
if {([botisop $chan]) && (![isop $nick $chan]) && (![isvoice $nick $chan]) && (![matchattr $hand $badidentexempt $chan]) && ([onchan $nick $chan])} {
putquick "MODE $chan -o+bb $nick $badidentban1 $badidentban2"
putquick "KICK $chan $nick :0,1 Bad User Ident Kick 2,0 - Unacceptable *User Ident* 12detected. Please change your 2'IDENT' 12to a suitable one and then 2rejoin back."
timer $badidbantime "pushmode $chan -b $badidentban2"
return 0
}
}
}
}
}
True. There's better ways to do it. eggi's bot is an IRCOp anyway.
eggi wrote:hello i use Bad Ident Kicker Script v1.65.b. i used this tcl in a oper bot. but this only works when the bot is oped in a channel. but
i want it everytime bot kick/ban with bad ident whenever it
is oped or deoped.
.. and as he seemed determined he wanted to use it....
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM
Alchera wrote:
.. and as he seemed determined he wanted to use it....
*shrug*
a modern day ircop... the days when ircops actually knew how IRC works are long gone; nowadays everyone seems to be running their own (Unreal) server, taking pride in policing their little world and excercising power
Oh I was updating that script, fixing it and adding more features into it. 4 new seperate modules now, making a total of 5. Bad idents as previously, now also bad nicks and bad hosts and bad masks.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Alchera wrote:
.. and as he seemed determined he wanted to use it....
*shrug*
a modern day ircop... the days when ircops actually knew how IRC works are long gone; nowadays everyone seems to be running their own (Unreal) server, taking pride in policing their little world and excercising power
I couldn't agree with you more demond; I have other words besides 'clueless' that I use.
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM