| View previous topic :: View next topic |
| Author |
Message |
eggi Voice
Joined: 15 Sep 2005 Posts: 11
|
Posted: Thu Sep 15, 2005 4:57 pm Post subject: need help about Bad Ident Kicker Script v1.65.by awyeah |
|
|
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.
| Code: |
#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
}
}
}
}
}
|
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Sep 15, 2005 5:13 pm Post subject: |
|
|
you don't need a script for this
simply add *!*badident@* masks to +k user record, or ban them |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Sep 15, 2005 8:41 pm Post subject: |
|
|
| Code: | | # (ain't i an asskicker?...) |
Tickets on ourself?
If you really need this particular script just alter the following line from:
| Code: | | if {([botisop $chan]) && (![isop $nick $chan]) && (![isvoice $nick $chan]) && (![matchattr $hand $badidentexempt $chan]) && ([onchan $nick $chan])} |
to:
| Code: | | if {(![isop $nick $chan]) && (![isvoice $nick $chan]) && (![matchattr $hand $badidentexempt $chan]) && ([onchan $nick $chan])} |
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Sep 15, 2005 11:11 pm Post subject: |
|
|
| Alchera wrote: | | Code: | | # (ain't i an asskicker?...) |
Tickets on ourself?
If you really need this particular script just alter the following line from:
| Code: | | if {([botisop $chan]) && (![isop $nick $chan]) && (![isvoice $nick $chan]) && (![matchattr $hand $badidentexempt $chan]) && ([onchan $nick $chan])} |
to:
| Code: | | if {(![isop $nick $chan]) && (![isvoice $nick $chan]) && (![matchattr $hand $badidentexempt $chan]) && ([onchan $nick $chan])} |
|
this is pointless, just as pointless is that [botisop] check anyway (and basically, the whole script)
the bot won't be able to set the ban if it doesn't have ops - with that check or without it - doesn't matter |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Sep 15, 2005 11:23 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Sep 15, 2005 11:42 pm Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Mon Sep 19, 2005 12:39 am Post subject: |
|
|
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.
================================== |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Sep 21, 2005 8:40 pm Post subject: |
|
|
| demond wrote: | | 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 |
|
| Back to top |
|
 |
|