This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

need help about Bad Ident Kicker Script v1.65.by awyeah

Old posts that have not been replied to for several years.
Locked
e
eggi
Voice
Posts: 11
Joined: Thu Sep 15, 2005 4:45 pm

need help about Bad Ident Kicker Script v1.65.by awyeah

Post by eggi »

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: Select all

#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
        }
      }
    }
  }
}
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you don't need a script for this

simply add *!*badident@* masks to +k user record, or ban them
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

# (ain't i an asskicker?...)
Tickets on ourself? :lol:

If you really need this particular script just alter the following line from:

Code: Select all

if {([botisop $chan]) && (![isop $nick $chan]) && (![isvoice $nick $chan]) && (![matchattr $hand $badidentexempt $chan]) && ([onchan $nick $chan])}
to:

Code: Select all

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Alchera wrote:

Code: Select all

# (ain't i an asskicker?...)
Tickets on ourself? :lol:

If you really need this particular script just alter the following line from:

Code: Select all

if {([botisop $chan]) && (![isop $nick $chan]) && (![isvoice $nick $chan]) && (![matchattr $hand $badidentexempt $chan]) && ([onchan $nick $chan])}
to:

Code: Select all

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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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.... :P
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Alchera wrote: .. and as he seemed determined he wanted to use it.... :P
*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 :)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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.
==================================
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

demond wrote:
Alchera wrote: .. and as he seemed determined he wanted to use it.... :P
*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. :wink:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked