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

	<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>2004-06-10T00:18:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-06-10T00:18:25-04:00</updated>

		<published>2004-06-10T00:18:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37161#p37161</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37161#p37161"/>
		<title type="html"><![CDATA[Need help finishing my script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37161#p37161"><![CDATA[
ditch the {}'s around your [userlist... calls.... they are inhibiting your command and variable substitutions...<br><br>ie. <div class="codebox"><p>Code: </p><pre><code>foreach nick [userlist $voice_listone $voice_chan] { .. stuff ..}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jun 10, 2004 12:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-09T23:50:31-04:00</updated>

		<published>2004-06-09T23:50:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37160#p37160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37160#p37160"/>
		<title type="html"><![CDATA[Need help finishing my script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37160#p37160"><![CDATA[
Try renaming it to something else than nick, since you already have that var in the proc header..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Wed Jun 09, 2004 11:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-06-09T22:34:50-04:00</updated>

		<published>2004-06-09T22:34:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37157#p37157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37157#p37157"/>
		<title type="html"><![CDATA[Need help finishing my script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37157#p37157"><![CDATA[
Can someone help correct this code?<br><div class="codebox"><p>Code: </p><pre><code>set voice_chan "#ILA"set voice_listone "R"set voice_listtwo "S"proc voice_list {nick host hand chan text} {    global voice_chan voice_listone voice_listtwo    foreach nick {[userlist $voice_listtwo $voice_chan]} {        chattr $nick -$voice_listtwo $voice_chan    }    foreach nick {[userlist $voice_listone $voice_chan]} {        chattr $nick -$voice_listone $voice_chan        chattr $nick +$voice_listtwo $voice_chan    }    putserv "PRIVMSG $voice_chan :!list"    utimer $voice_waittime {voice_endvoice}}</code></pre></div>Why won't the foreach nick parts work?<p>Statistics: Posted by Guest — Wed Jun 09, 2004 10:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-04-05T21:56:24-04:00</updated>

		<published>2004-04-05T21:56:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35267#p35267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35267#p35267"/>
		<title type="html"><![CDATA[Need help finishing my script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35267#p35267"><![CDATA[
I'm writting an FServe Auto-Voice script. It's mostly done. I have it !list 'ing and voicing. I just have to get it to devoice.<br><br>Here's a snippit of my code:<div class="codebox"><p>Code: </p><pre><code>proc voice_devoice {nick uhost hand chan text} {    global voice_chan voice_devoice voice_endvoice voice_me    if { $voice_endvoice == 1 } {if { ([isvoice $nick $voice_chan]) &amp;&amp; (![voice_me $nick $voice_chan]) } {    pushmode $voice_chan -v $nickname}    }}proc voice_me {nick uhost hand chan text} {    global voice_chan    if { [botisop $voice_chan] } {if { (![isop $nick $voice_chan]) &amp;&amp; (![isvoice $nick $voice_chan]) } {    putserv "MODE $voice_chan +v $nick"}    }}</code></pre></div>Okay, I'm not very good at .tcl at all, but it's what eggdrop uses so I have to learn to use it a little bit. Now what I want to do, or the idea I have is:<br><br>During the !list "voice_me" voices all the FServe, so I was thinking why can't for devoice we have a negation of that? hence (![voice_me $nick $voice_chan]) however this doesn't work. But you understand what I'm after right? If they have voice, and voice_me didn't pick them up, then they should be devoiced.<p>Statistics: Posted by Guest — Mon Apr 05, 2004 9:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
