<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/3812" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-03-03T18:57:48-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/3812</id>

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-03-03T18:57:48-04:00</updated>

		<published>2003-03-03T18:57:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17370#p17370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17370#p17370"/>
		<title type="html"><![CDATA[Problems :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17370#p17370"><![CDATA[
wrong section <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>as for the error... you can't simply just add another "input", if the proc is expecting 6 inputs it gives you an error if you suply just 5, the number and type of inputs varies with each type of bind..<br>I suggest you go and read about binds in the tcl-commands.doc file in the /doc dir on your eggdrop..<br><br>it's an amazing file which would halfe the questions asked in the TCL section if people would just read it ... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Mar 03, 2003 6:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Yourname]]></name></author>
		<updated>2003-03-03T18:51:57-04:00</updated>

		<published>2003-03-03T18:51:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17369#p17369</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17369#p17369"/>
		<title type="html"><![CDATA[Problems :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17369#p17369"><![CDATA[
I dunno about the script error, but I know that this is the wrong place you have posted your question in. You must've tried putting it in the TCL section. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13">Yourname</a> — Mon Mar 03, 2003 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Insectora]]></name></author>
		<updated>2003-03-03T17:40:47-04:00</updated>

		<published>2003-03-03T17:40:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17365#p17365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17365#p17365"/>
		<title type="html"><![CDATA[Problems :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17365#p17365"><![CDATA[
Hello.<br>I have a problem with this script again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)<br>  <br>CODE<div class="codebox"><p>Code: </p><pre><code>proc daddy_ban_warn {nick host hand ban chan victims} {        global daddy botnick        set ban *!*[string range $host [string first "@" $host] end]        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 $ban"                         putserv "KICK $chan $nick :Don't ban my friends, bud"                         newchanban $chan $ban Friendprotection "Friend was banned off $chan"                         adduser $nick $nick!*@*                         chattr $nick +d                         return 0                }        return 0        }</code></pre></div><br>Before i edit the tcl, this script bans the bad guy on his nick.<br>But i wanted the script to ban on the address of the bad guy, and i aded<br>the line <br>set ban *!*[string range $host [string first "@" $host] end]<br><br>and raplace <br>putserv "MODE $chan -o+b $nick $nick"<br><br>With<br>putserv "MODE $chan -o+b $nick $ban"<br><br>and also edit  {nick hand ban chan victims} to {nick host hand ban chan victims}, i only added the "host"<br><br>I and after all this i hoped the bot to ban the bad guy to his *!*@adress <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)<br>But when i test the script , There was this error<br><br>TCL error [daddy_watch_mode]: no value given for parameter "victims" to "daddy_ban_warn"<br><br>why??<br>I only added the "host"  !<br><br>Pls help me and tell me how to prevent this error in this script and future scripts <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2732">Insectora</a> — Mon Mar 03, 2003 5:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
