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.

Part / Quit Msg Ban

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
i
i.m.offline
Halfop
Posts: 74
Joined: Thu Mar 02, 2006 11:47 am

Part / Quit Msg Ban

Post by i.m.offline »

Hello Friends,

I would request if I can have a script which bans on specific part/quit msg. I tried using Awyeah's code and it works all well. But when I tried to add few more words in it for part/quit ban. The script dont react for those words. I dont understand why.

Please if u have something better, thx in advance.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Which words exactly? And what is the name of the script?
i
i.m.offline
Halfop
Posts: 74
Joined: Thu Mar 02, 2006 11:47 am

Post by i.m.offline »

The script is
# Begin - Part/Quit, Anti Part/Quit Message Script v5.34.b (partquit.tcl)

by Awyeah.

and the variable in this script is
set partquitwords {

But when I add new words in it, it doesn't seems to be reacting
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Yeah..that's why I asked "which words exactly"
i
i.m.offline
Halfop
Posts: 74
Joined: Thu Mar 02, 2006 11:47 am

Post by i.m.offline »

i tried to add like echox, killed.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

what settings do you have in the script so i can test it with the same settings.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Did you .rehash after adding changes?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Hmm I guess he's not gonna tell me what his settings are..This script is really really really overly complicated.. Would be easier to write a custom script based on any one of the simpler "ban for this or that" scripts from the archives, like one of the badname or badword scripts..
R
Riddler
Halfop
Posts: 60
Joined: Sun May 20, 2007 10:20 pm
Location: Brasov, Romania
Contact:

Post by Riddler »

Try to use this script

Code: Select all

set qpadv(chan) "#channel"

# Set here your kick message
set qpadv(km) "Please change your QUIT/PART message!"

# Set here the ban time
set qpadv(bt) "1440"

# Set here the bad quit's for witch the user will be banned.
set qpadv(w) {
  "*www*"
  "*http://*"
  "#*"
  "*.com*"
  "*.org*"
  "*.ro*"
  "*.de*"
  "*.us*"
  "*.net*"
  "*.co.uk"
  "*.eu"
  "*.in"
  "*.bis*"
}

########################################################
#- Don't edit below unless you know what you're doing -#
########################################################

bind sign - * s:riddler:qpadv
bind part - * s:riddler:qpadv

proc s:riddler:qpadv {nick uhost hand chan arg} {
  global botnick qpadv
     if {[matchattr $hand of|of $chan] || [isop $nick $chan] || [isvoice $nick $chan]}  { return 0 }
     if {(([lsearch -exact [string tolower $qpadv(chan)] [string tolower $chan]] != -1) || ($qpadv(chan) == "*")) && (![matchattr $hand b]) && ($nick != $botnick)} {
         foreach badqp [string tolower $qpadv(w)] {
         if {[string match *$badqp* [string tolower $arg]]} {
            set ban "*!*@[lindex [split $uhost @] 1]"
            newchanban $chan $ban quitpartadv $qpadv(km) $qpadv(bt)
            return 1  
           }
        }
    }
}

putlog "TCL Loaded: noquitpartadv.tcl"
It`s working very good ;-) :lol: 8)
I am a man of few words, but many riddles
Post Reply