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

	<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>2007-04-12T15:24:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-04-12T15:24:25-04:00</updated>

		<published>2007-04-12T15:24:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72024#p72024</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72024#p72024"/>
		<title type="html"><![CDATA[requestbot script (wont scan channels)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72024#p72024"><![CDATA[
First off, the number of arguments in your proc does not match the number of arguments used when the binding triggers (see doc/tcl-commands.doc).<br><br>Secondly, the variable "text" is not defined before it is used inside the same proc.<br><br>Third, you try to use some of the variabled you've defined in globalspace (outside the proc) from within the proc, using local namespace rather than the global (either access them using the "global" command, or use absolute addressing, ie $::nochanreq instead of $nochanreq<br><br>Fourth, chanlist will only operate on channels already added to your bot, so you cannot use it in this way (there is also a slight delay from when the channel is added, until your bot has actually joined it and gathered data on who's in the channel. During this time, chanlist will return an empty list).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Apr 12, 2007 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prassel]]></name></author>
		<updated>2007-04-12T15:11:19-04:00</updated>

		<published>2007-04-12T15:11:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72022#p72022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72022#p72022"/>
		<title type="html"><![CDATA[requestbot script (wont scan channels)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72022#p72022"><![CDATA[
egg will join the channel if X ops from #channel is on the master channel.<br>i cant get it to join a channel :/<br><br>it locks up on "foreach" as i dont get any notice from it<br>help? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>this is what i've got:<div class="codebox"><p>Code: </p><pre><code># set your master channel that those requesting the bot has to be in #set masterchan "#prassel"# set message when no matches have been announced #set nomatch "No matches announced at this moment"# requirements (how many ops from servicechannel in the masterchannel) #set chanusreq 1# message to send back when a channel does not meet the requirements to get the bot #set nochanreq "Your channel does not meet the requirements"# message to notice user when successfully joined #set chanjoinmsg "Joined $reqchan"bind msg n|m|o "requestbot" chan:checkproc chan:check {nick chan} {set authusers 0set reqchan [lindex $text 0]foreach nick [chanlist $reqchan] {if {([isop $nick $reqchan] == 1) &amp;&amp; ([onchan $nick $masterchan] == 1)} {incr authusers}}if {$authusers &lt; $chanusreq} {putserv "NOTICE $nick :$nochanreq"}elseif {$authusers &gt;= $chanusreq} {channel add $reqchanputserv "NOTICE $nick :$chanjoinmsg"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8894">prassel</a> — Thu Apr 12, 2007 3:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
