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.

Mode protect...

Old posts that have not been replied to for several years.
Locked
C
CBUg

Mode protect...

Post by CBUg »

Hi there, since 2 weeks i am writting a anti-overtake script for the qnet.

now i got my first unsolveable error. :/
[15:31] wrong # args: should be "proc name args body"
while executing
"proc l_prot_banmode {nick uhost hand chan mc moden} {
global lchans lchanmode
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
..."
The complete src if following:
bind mode - "* +k" l_prot_banmode
bind mode - "* +i" l_prot_banmode
bind mode - "* +l" l_prot_banmode

proc l_prot_banmode {nick uhost hand chan mc moden} {
global lchans lchanmode
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
putquick "PRIVMSG TheLBot@lightweight.quakenet.org :chanlev $chan $nick -$chanmode"
if {[botisop $chan]} {
putquick "MODE $chan -o+b $nick $uhost"
}
if {[botonchan $chan]} && [botisop $chan]} {
putquick "KICK $chan $nick :\002AntiOvertake Script\002 - Don't change Chanmodes!"
}
}
Can anyone find a failure ? i found none. ... the script worked fine as i used:
proc l_prot_banmode {nick uhost hand chan mc moden} {
global lchans lchanmode
if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return}
putquick "PRIVMSG TheLBot@lightweight.quakenet.org :chanlev $chan $nick -$chanmode"
putquick "MODE $chan -o+b $nick $uhost"
putquick "KICK $chan $nick :\002AntiOvertake Script\002 - Don't change Chanmodes!"
}
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

if {[botonchan $chan]} && [botisop $chan]} {
remove the extra }
Elen sila lúmenn' omentielvo
C
CBUg

Post by CBUg »

oh damn not seen... thnx
M
MINImi
Voice
Posts: 30
Joined: Sat Oct 11, 2003 6:52 am

Post by MINImi »

hmm when i copy this the script doenst work :P
User avatar
BarkerJr
Op
Posts: 104
Joined: Sun Mar 30, 2003 1:25 am
Contact:

Post by BarkerJr »

What's it say is wrong?
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

also, the:

Code: Select all

if {[isbotnick $nick] || ![string match "$chan" "lchans"]} {return} 
should be:

Code: Select all

if {[isbotnick $nick] || ![string match -nocase $chan $lchans]} {return} 
Once the game is over, the king and the pawn go back in the same box.
Locked