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.

I hate this error PLS HELP !!!

Old posts that have not been replied to for several years.
Locked
I
Insectora
Voice
Posts: 16
Joined: Thu Feb 20, 2003 2:51 am
Location: Germany

I hate this error PLS HELP !!!

Post by Insectora »

Hello
I really hate thist error when i am editing scripts to my taste :)

this is the error

TCL error [daddy_watch_mode]: no value given for parameter "victims" to "daddy_ban_warn"

and from another script,that i was edited :

TCL error [tested]: no value given for parameter "chan" to "closing"

How to prevent this errors ????????????
I want really help !!!!


And why when i add the "host" in this {nick host hand ban chan victims text} ,there is this error

TCL error [daddy_watch_mode]: no value given for parameter "victims" to "daddy_ban_warn"

why ?? how to prevent?I posted this question again beacuse in my previous topic no one telme !!! I read the tcl-comands.doc, but there was nothing helpful for that error !

I expect Serious help
Stealth
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Without seeing more of the script, we can only guess what the problem is.

This error is generated when you don't pass enough information, from one script to another.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Can you upload your tcl and paste the link? It's easier this way..
Once the game is over, the king and the pawn go back in the same box.
I
Insectora
Voice
Posts: 16
Joined: Thu Feb 20, 2003 2:51 am
Location: Germany

Post by Insectora »

Here is the script.
I want to add this line , so the bot to ban to *!*@adress :
set ban *!*[string range $host [string first "@" $host] end]

and i added "host" in {nick hand ban chan victims}
But then has come the error :

TCL error [daddy_watch_mode]: no value given for parameter "victims" to "daddy_ban_warn"


Here is the script

Code: Select all

proc daddy_ban_warn {nick hand ban chan victims} {
        global daddy botnick
        if {![botisop $chan] || [strlwr $hand] == [string trimright [strlwr $victims] " "] || $daddy(ban_protect) == 0} {return 0}
        if {$hand == "*"} {
                if {[string first +userbans [channel info $chan]] != -1} {
                         if {$nick == $botnick} {return 0}
                         putserv "MODE $chan -o+b $nick $nick"
                         putserv "KICK $chan $nick :Don't ban my friends, bud"
                         newchanban $chan $nick Friendprotection "Friend was banned off $chan"
                         adduser $nick $nick!*@*
                         chattr $nick +d
                         return 0
                }
        return 0
        }
        set remove 0
        foreach user $victims {
                if {([matchattr $user f|f $chan] || [matchattr $user b]) && !([matchattr $hand f|f $chan] || ([matchattr $hand f|f $chan] && [matchattr $hand b]))} {
                        set remove 1
                        break
                }
                if {([matchattr $user f|f $chan] || [matchattr $user f|f $chan]) && ![matchattr $hand f|f $chan]} {
                        set remove 1
                        break
                }
        }
        if {$remove == 1} {putserv "MODE $chan -b $ban"}
        if {![matchattr $hand b]} {
                if {[llength $victims] > 1} {
                         if {$nick == $botnick} {return 0}
                         putserv "MODE $chan -o+b $nick $nick"
                         putserv "KICK $chan $nick :Don't ban my friends, bud"
                         newchanban $chan $nick Friendprotection "Friend was banned off $chan"
                         adduser $nick $nick!*@*
                         chattr $nick +d
                         return 0
                }                                 
        }
        return 0
}
And you should help me :)))))))))))
Stealth
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

First of all, you haven't used corectly the *proc* for the bind kick. It should have this *list* of arguments: 'nick uhost handle channel victim reason'. Read more carefuly in the tcl-commands.doc file for the proc of bind kick.

As for a ban mask, where do you want to put it?
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It can't be a kick bind, otherwise the error regarding insuficient output wouldn't come up.

What version of eggdrop are you using.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

If it's not a bind for kick then a bind mode and still not sufficient arguments..
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

TCL error [daddy_watch_mode]: no value given for parameter "victims" to "daddy_ban_warn"


Here is the script

Code:

proc daddy_ban_warn {nick hand ban chan victims} {
He states he gets this message, when adds host to the proc decliration.

This means that the bind is only passing 5 arguments (any less there would be a error).

My guess is, it's neither a KICk or MODE bind, and would need to see it.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Humm, yes.. guess I've lost my minds this day. For what bind is this proc?
Once the game is over, the king and the pawn go back in the same box.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

not to say...

Post by De Kus »

RTFM...
tcl-commands - binds (14) mode wrote:MODE (stackable)
bind mode <flags> <mask> <proc>
proc-name <nick> <user@host> <handle> <channel> <mode-change> <victim>

Description: mode changes are broken down into their component
parts before being sent here, so the <mode-change> will always
be a single mode, such as "+m" or "-o". victim will show the
argument of the mode change (for o/v/b/e/I) or "" if the set
mode does not take an argument. Flags are ignored. The bot's
automatic response to a mode change will happen AFTER all
matching Tcl procs are called. The mask will be matched against
'#channel +/-modes' and can contain wildcards.

If it is a server mode, nick will be "", user@host is the server
name, and handle is *.

Note that "victim" was added in 1.3.23 and that this will break
Tcl scripts that were written for pre-1.3.23 versions and use this
binding. An easy fix (by guppy) is as follows (example):

Old script looks as follows:
bind mode - * mode_proc
proc mode_proc {nick uhost hand chan mc} { ... }

To make it work with 1.3.23+ and stay compatible with older bots, do:
bind mode - * mode_proc_fix
proc mode_proc_fix {nick uhost hand chan mc {victim ""}} {
if {$victim != ""} {append mc " $victim"}
mode_proc $nick $uhost $hand $chan $mc
}
proc mode_proc {nick uhost hand chan mc} { ... }
Module: irc
read it carefully. after you fixt all errors resulting of ignoring these documents you can come back and ask further ^-^.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I've already sugested that might be a bind for kick or mode. But noo. :)
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Da Kus. It isn't the KICK or modes binds.

Look at his proc definition.

He stated, that is it he adds "host" to this definition, he gets the error "No argument for variable". He doesn't get a error, if left as it is.

It can't be a four part definition, otherwise it would moan about too many arguments instead.

Leaving the option, that the bind is only passing 5 arguments, ruling out some of the binds.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

ppslim wrote:Da Kus. It isn't the KICK or modes binds.
it doenst matter if it is or not, he is only checking for mode changes, so best bind for this script as it is is mode, isnt it?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

What he is trying to do is wrong. it isn't doing what he wants, becaus he hasn't asked it too.

He is currently usign the wrong bind, which he clearly hasn't shoed us.

He then changes the proc definition, and expects it to work.

It's like a Mellon. No matter what you do to it, write the work pee on it, cut it to size or anything else, it's allways a damned Mellon and no a pee.
Locked