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.

Bind problem

Old posts that have not been replied to for several years.
Locked
A
AEn|gMa

Post by AEn|gMa »

This bind doesn't work in my script...

bind mode - "$channel -l" protectmode

any ideas??? Thanks
R
Renik

Post by Renik »

A good idea should be reading the tcl-commands.doc

(14) MODE (stackable)
bind mode <flags> <mask> <proc>
proc-name <nick> <user@host> <handle> <channel> <mode-change> <victim>
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

An even better idea is to be more descriptive and say "what" is not actually working :)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

That, and what is the variable "channel" set to.
A
AEn|gMa

Post by AEn|gMa »

Sorry... I explain better my problem

This bind

bind mode - "#channel +l" protectmode

works fine and this

bind mode - "#channel -l" protectmode

doesn't work...

proc protectmode {nick uhost han chan mc param} {
global protect limite dcc botnick status
if {($protect == "yes") && ($status == "ON")} {
if {$nick != $botnick} {
pushmode #channel +l $limite
}
} else {
set limite $param
}
}
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Have you added any debugging code to the first line of the script?

EG
just after the line
proc protectmode {nick uhost han chan mc param} {
Add somthing like
putlog "Protectmode triggered"
A
AEn|gMa

Post by AEn|gMa »

I've tried to debug code in any way...
The script seems doesn't work

I'm trying script with 1.3.x for windozZz.
Hey... I've yet found the bug: it's "windows"
:smile:))

byez all
Locked