<?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/10116" />

	<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>2005-07-23T14:13:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-07-23T14:13:28-04:00</updated>

		<published>2005-07-23T14:13:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53091#p53091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53091#p53091"/>
		<title type="html"><![CDATA[Banlist error :/!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53091#p53091"><![CDATA[
Your using the wrong 'ID'<br>You set the variable to number($channel) but you tell the nickname number($chan)<br><br>Also, why are you making an array out of it? There is little point as the variables are unset after the proc anyway.<br><div class="codebox"><p>Code: </p><pre><code>bind pub m {$banlist} banlist:channelproc banlist:channel { nickname hostname handle channel arguments } {putserv "notice $nickname :banlist for $channel:"set number 0foreach bans [banlist $channel] {set banmask [lindex $ban 0]set reason  [lindex $ban 1]set creator [lindex $ban 5]incr numberputserv "notice $nickname :ID: $number Banmask:$banmask Reason: $reason Creator: $creator"}} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sat Jul 23, 2005 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Winters]]></name></author>
		<updated>2005-07-23T14:02:31-04:00</updated>

		<published>2005-07-23T14:02:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53090#p53090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53090#p53090"/>
		<title type="html"><![CDATA[Banlist error :/!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53090#p53090"><![CDATA[
I just made a banlist script with a Ban id but the bot just give errors<br><br>Here is the code:<div class="codebox"><p>Code: </p><pre><code>bind pub m {$banlist} banlist:channelproc banlist:channel { nickname hostname handle channel arguments } {putserv "notice $nickname :banlist for $channel:"set number($channel) 0foreach bans [banlist $channel] {set banmask [lindex $ban 0]set reason  [lindex $ban 1]set creator [lindex $ban 5]incr number($channel)putserv "notice $nickname :ID: $number($chan) Banmask:$banmask Reason: $reason Creator: $creator"}}</code></pre></div>And here the error:<blockquote class="uncited"><div>wrong # args: should be "banlist nickname hostname handle channel arguments"<br>hile executing<br>"banlist $channel"<br>(procedure "banlist:channel" line 6)<br>invoked from within<br>"banlist:channel $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6461">Winters</a> — Sat Jul 23, 2005 2:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
