egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
eggi
Voice


Joined: 15 Sep 2005
Posts: 11

PostPosted: Thu Sep 15, 2005 4:57 pm    Post subject: need help about Bad Ident Kicker Script v1.65.by awyeah Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Sep 15, 2005 5:13 pm    Post subject: Reply with quote

you don't need a script for this

simply add *!*badident@* masks to +k user record, or ban them
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Sep 15, 2005 8:41 pm    Post subject: Reply with quote

Code:
# (ain't i an asskicker?...)

Tickets on ourself? Laughing

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
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Sep 15, 2005 11:11 pm    Post subject: Reply with quote

Alchera wrote:
Code:
# (ain't i an asskicker?...)

Tickets on ourself? Laughing

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
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Sep 15, 2005 11:23 pm    Post subject: Reply with quote

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.... Razz
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Sep 15, 2005 11:42 pm    Post subject: Reply with quote

Alchera wrote:

.. and as he seemed determined he wanted to use it.... Razz


*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 Smile
Back to top
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Mon Sep 19, 2005 12:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Sep 21, 2005 8:40 pm    Post subject: Reply with quote

demond wrote:
Alchera wrote:

.. and as he seemed determined he wanted to use it.... Razz


*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 Smile

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber