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.

ident + nick ?

Old posts that have not been replied to for several years.
Locked
l
lsn
Voice
Posts: 25
Joined: Mon Jul 19, 2004 8:11 am

ident + nick ?

Post by lsn »

so the next script

thanks awyeah for it :mrgreen: its great

Code: Select all

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
        }
      }
    }
  }
}

is posible to make it works when a bad nick join the channel ?

i mean to work on bad ident & to work on bad nick (2 scripts in one :).)


:wink:
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yes you can do it, with a little change here and there. You would need to modify the string matching a bit and remove some unnecessary lines, modify a bit here and there too.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
l
lsn
Voice
Posts: 25
Joined: Mon Jul 19, 2004 8:11 am

Post by lsn »

awyeah wrote:Yes you can do it, with a little change here and there. You would need to modify the string matching a bit and remove some unnecessary lines, modify a bit here and there too.
great answear but where to modify ? :mrgreen:
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Why don't you use the other badnick scripts out there? there are so many on www.egghelp.org. I didn't release one as there are many out there, which do the same, heh. :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
l
lsn
Voice
Posts: 25
Joined: Mon Jul 19, 2004 8:11 am

Post by lsn »

because i nedd only one script to do both things :wink:
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Actually I would make a new procedure for the badnick bind, otherwise all stuff will be messy. So then again there will be a new proc with maybe a new bind or so.

Then it is really countless to say you want everything in one script. You can download another script edit and paste it with the badident one, and both will be in the same file, meaning one script. :mrgreen:

Currently am very busy, otherwise I would have done your request, but it is pointless as there are many out there and you can do the above thing to make all scripts into one file and load that file only!
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked