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.

noversion Script

Old posts that have not been replied to for several years.
Locked
S
Sjef

noversion Script

Post by Sjef »

Hi,

I tried out the noversion script which I found in the tcl archive.
But the problem with it is it kicks people but won't ban them. Since I can't TCL script i was wondering if someone who could was willing to take a look on it.

The url of the script = http://www.egghelp.org/files/tcl/noversions1.05.tcl.gz

Greets, Sjef
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Stupid question: have you changed the "nv_ban" to 1?
Once the game is over, the king and the pawn go back in the same box.
S
Sjef

Post by Sjef »

caesar wrote:Stupid question: have you changed the "nv_ban" to 1?
Yes

Code: Select all

## Punish the people who have one of the following words in the ctcp-version reply.
set nv_versions {"script1" "script2"} 

## Ask ctcp-version if user joins one of these channels.
# Note: Set this to "" to enable punishing on all channels.
set nv_chans "#chan"

## [0/1] If user has a lame IRC-client/script then punish him/her only on $nv_chans?
# Note: If this is set to 0 then the bot punish user on all channels where the bot and the user are.
set nv_onlynvchans 1

## What is the reason for the punishment?
set nv_reason "Lame-ass Script"

## [0/1] Kick the user?
set nv_kick 0

## [0/1] Give the user a warning?
set nv_givewarning 0

## Give what kind of warning?
set nv_warning "Don't use lame scripts and/or clients."

## [0/1] Ban the user?
set nv_ban 1

## Ban for how long time (min)?
set nv_bantime 30

## [0/1] Ignore the user?
set nv_ignore 1

## Ignore for how long time (min)?
set nv_ignoretime 30

## What users can use the nvcheck command?
set nv_chkflag "m"

## Don't ask ctcp-version from the users with the following global flags. 
set nv_globflags "m n o b"

## Don't ask ctcp-version from the users with the following channel flags.
set nv_chanflags "q a o h v"
S
Sjef

Post by Sjef »

Anyone got an idea ?
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

get this example:

Code: Select all

### In what channel do you want this script enabled?
set nov_chan "#chan"

### What do you want the ban's duration to be? (in minutes)
set durat 30

bind ctcp - "*" chan:ctcp

proc chan:ctcp {nick host hand dest keyw text} {
if {$keyw == "ACTION"} {
return 0
}
if {$dest == $nov_chan} {
set chan $dest
  if {[matchattr $hand of|fo $chan] || [isop $nick $chan]} {
    return
  }
set mask "*!*@[lindex [split $host @] 1]"
newban $mask CTCPs "\002$durat minutes\002 ban for using \002CTCPs\002 within \002$chan\002 " $durat
return 1
}
}
«A fantastic spaghetti is a spaghetti that does not exist»
S
Sjef

Post by Sjef »

Is it a new script or a part i need to edit in the old script?

If it is a new, where do i place the bad versions (it are 2 scripts i want to ban from my channel).

Grtz, Sjef
Locked