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

	<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-04-26T07:13:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-04-26T07:13:00-04:00</updated>

		<published>2002-04-26T07:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6455#p6455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6455#p6455"/>
		<title type="html"><![CDATA[Needs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6455#p6455"><![CDATA[
proc xstuff:need {channel type} { <br>global botnick x<br>if {[lsearch -exact $x(channels) $channel] == -1} {return 0}<br>if {$type == "op" &amp;&amp; [onchan X $channel]} {<br>putserv "PRIVMSG X :eek:p $channel $botnick"<br>}<br>if {$type == "invite" &amp;&amp; $channel == $x(channels)} {<br>putserv "PRIVMSG X :invite $channel $botnick"<br>}<br>bla bla bla<br>... <br><br>Do I have to put "if {[lsearch -exact $x(channels) $channel] == -1} {return 0}" at the each need? Or if I put it in only one place is for all needs?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Apr 26, 2002 7:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-04-26T07:00:00-04:00</updated>

		<published>2002-04-26T07:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6452#p6452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6452#p6452"/>
		<title type="html"><![CDATA[Needs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6452#p6452"><![CDATA[
In fact the line I was thinking to do the trick is the folowing:<br>if {[lsearch -exact $x(channels) $chan] == -1} {return 0}<br><br>Thanks mysefl <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> — Fri Apr 26, 2002 7:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-04-12T22:45:00-04:00</updated>

		<published>2002-04-12T22:45:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6175#p6175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6175#p6175"/>
		<title type="html"><![CDATA[Needs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6175#p6175"><![CDATA[
# Set channels:<br>set x(channel) "#bar1 #bar2"<br><br>bind need - op op:need<br><br>proc op:need {channel type} { <br>global botnick x<br>if {$type == "op" &amp;&amp; [lsearch -exact [split [string tolower $x(channel)]] [string tolower $channel]] != -1)} {<br>bla bla bla..<br>}<br>return<br>}<br><br>If he needs op in the #foo he should not use op:need proc. If he wants op in #bar1 or #bar2 he should use op:need proc.<br>Right?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Apr 12, 2002 10:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
