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

	<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>2002-03-09T20:38:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-03-09T20:38:00-04:00</updated>

		<published>2002-03-09T20:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5186#p5186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5186#p5186"/>
		<title type="html"><![CDATA[Error?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5186#p5186"><![CDATA[
Like I told you up, here is my original code. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>proc next:voice {nick uhost handle channel arg} {<br>global voicelist<br>set who [lindex $voicelist 0]<br>if {$voicelist == "" } {<br>putserv "NOTICE $nick :Voice voicelist is empty." <br>return 1 }<br>if {[botisop $channel]} {<br>putserv "MODE $channel +v $who"<br>set voicelist [lrange $voicelist 1 end]<br>return 1 }<br>putserv "NOTICE $nick :I'm not oped on $channel. ~:o("<br>}<br><br>I meen the original end of the .next tcl. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Mar 09, 2002 8:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-03-07T06:35:00-04:00</updated>

		<published>2002-03-07T06:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5121#p5121</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5121#p5121"/>
		<title type="html"><![CDATA[Error?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5121#p5121"><![CDATA[
this part of the copde is not in my .conf file.. is in a tcl file, at the end of it.<br>I got to change the order I put the lines.. sish.. Thx for the info!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Mar 07, 2002 6:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-03-06T08:02:00-04:00</updated>

		<published>2002-03-06T08:02:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5112#p5112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5112#p5112"/>
		<title type="html"><![CDATA[Error?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5112#p5112"><![CDATA[
proc next:voice {nick uhost handle chan arg} { <br>global list <br>set who [lindex $list 0] <br>putserv "PRIVMSG $chan :list is empty" <br>return 0 } <br>        ^^^ proc ends here<br><br><br>everything below here is procless code<br><br>if {[botisop $chan] &amp;&amp; [onchan $who $chan]} { ; here is the problem <br>putserv "MODE $chan +v $who" <br>regsub -all "$who" $list "" list <br>} <br><br><br><br>Also, if you're including this from line 1 of your .conf, I'm supprised the bind even worked as you would have not loaded any modules. Always put tcls at end of conf, so all the dependancies are loaded.<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Wed Mar 06, 2002 8:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-03-06T04:36:00-04:00</updated>

		<published>2002-03-06T04:36:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5106#p5106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5106#p5106"/>
		<title type="html"><![CDATA[Error?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5106#p5106"><![CDATA[
bind pub n .next next:voice<br><br>proc next:voice {nick uhost handle chan arg} {<br>global list<br>set who [lindex $list 0]<br>putserv "PRIVMSG $chan :list is empty"<br>return 0 }<br>if {[botisop $chan] &amp;&amp; [onchan $who $chan]} { ; here is the problem<br>putserv "MODE $chan +v $who"<br>regsub -all "$who" $list "" list<br>}<br><br>I'm getting this: TCL error in file 'eggdrop.conf': can't read "chan": no such variable while executing "botisop $chan" (file "scripts/voice.tcl" line 1) (file "eggdrop.conf" line 1) * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br><br>1) Where is the mistake?<br>2) Any sugestion to change the last part to check if the $list == "" to say this msg "list is empty" like i write up.<br>Thx!<br><br>PS: This is only the last part of the tcl.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Mar 06, 2002 4:36 am</p><hr />
]]></content>
	</entry>
	</feed>
