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

	<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>2013-02-10T06:05:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-10T06:05:55-04:00</updated>

		<published>2013-02-10T06:05:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100965#p100965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100965#p100965"/>
		<title type="html"><![CDATA[Reply to the command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100965#p100965"><![CDATA[
Ok this should work.<br>Yet i tell you to keep<br><br>set temp(#channel-name) with lowercases then after on the channel users can use whatever they want like #ChaNNel-Name it would still work<br><div class="codebox"><p>Code: </p><pre><code>bind PUB - !getaops getaops:pubset temp(#channel1) "text text text"set temp(#channel2) "some other text"proc getaops:pub {nick uhost hand chan arg} {global tempset who [lindex [split $arg] 0]if {[string match "#*" $who] &amp;&amp; [info exists temp([string tolower $who])]} {putserv "PRIVMSG $chan :$temp($who)"} else {set list ""foreach a [array names temp] { lappend list $a }putserv "PRIVMSG $chan :Valid channels are: [join $list ", "]"}}</code></pre></div>Test it and tell me if its working<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sun Feb 10, 2013 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slowpoke23]]></name></author>
		<updated>2013-02-10T06:02:29-04:00</updated>

		<published>2013-02-10T06:02:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100964#p100964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100964#p100964"/>
		<title type="html"><![CDATA[Reply to the command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100964#p100964"><![CDATA[
Thank you!! That is what I'm after pretty much ! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Just one minor problem if you don't mind helping just a little bit more..<br><br>[20:00:58] &lt;%SUme&gt; !getaops #ChaNnel2<br>[20:01:00] &lt;&amp;Botes&gt; Valid channels are: #channel1, #channel2<br>[20:01:04] &lt;%SUme&gt; lulz<br><br><br>Is there any way it if someone did say #ChaNnel2 it will reply back with #channel2 info?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12192">slowpoke23</a> — Sun Feb 10, 2013 6:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-10T05:53:04-04:00</updated>

		<published>2013-02-10T05:53:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100963#p100963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100963#p100963"/>
		<title type="html"><![CDATA[Reply to the command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100963#p100963"><![CDATA[
Ok well the code should look like<br>So if you want something more please reply<br><div class="codebox"><p>Code: </p><pre><code>bind PUB - !getaops getaops:pubset temp(#channel1) "text text text"set temp(#channel2) "some other text"proc getaops:pub {nick uhost hand chan arg} {global tempset who [lindex [split $arg] 0]if {[string match "#*" $who] &amp;&amp; [info exists temp($who)]} {putserv "PRIVMSG $chan :$temp($who)"} else {set list ""foreach a [array names temp] { lappend list $a }putserv "PRIVMSG $chan :Valid channels are: [join $list ", "]"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sun Feb 10, 2013 5:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slowpoke23]]></name></author>
		<updated>2013-02-10T05:42:59-04:00</updated>

		<published>2013-02-10T05:42:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100962#p100962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100962#p100962"/>
		<title type="html"><![CDATA[Reply to the command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100962#p100962"><![CDATA[
Hmm that script could become handy but !getaops will only be available in one channel which will be a chanops channel.. so i don't think !trigger etc will be any help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>I appreciate your help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12192">slowpoke23</a> — Sun Feb 10, 2013 5:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-10T05:37:07-04:00</updated>

		<published>2013-02-10T05:37:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100961#p100961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100961#p100961"/>
		<title type="html"><![CDATA[Reply to the command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100961#p100961"><![CDATA[
Well if you want different messages for every !getaops i recommand this script <a href="http://forum.egghelp.org/viewtopic.php?t=19313" class="postlink">http://forum.egghelp.org/viewtopic.php?t=19313</a><br>It allows you to create !getaops for every channel but with different reply messages<br>So you would do something like this<br><br>First activate the script on every channel you want it working<blockquote class="uncited"><div>!trigger activate </div></blockquote>Then create teh !getaops command<blockquote class="uncited"><div>!trigger getaops Aops are: .. .. ..</div></blockquote>And now any user could use in the channel command<blockquote class="uncited"><div>!getaops</div></blockquote>I think its simple beside what you have. But if you prefer i can modify that script to work on more channel yet it will be harder for you to look at the code and modify the text later or add other channels<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sun Feb 10, 2013 5:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slowpoke23]]></name></author>
		<updated>2013-02-10T05:31:07-04:00</updated>

		<published>2013-02-10T05:31:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100960#p100960</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100960#p100960"/>
		<title type="html"><![CDATA[Reply to the command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100960#p100960"><![CDATA[
Hi, Thanks. <br><br>I plan on having a few channels on this script like #chan1 #chan2 #lobby #help #network etc so I'm not sure how it'd be done that way?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12192">slowpoke23</a> — Sun Feb 10, 2013 5:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-10T05:26:13-04:00</updated>

		<published>2013-02-10T05:26:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100959#p100959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100959#p100959"/>
		<title type="html"><![CDATA[Reply to the command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100959#p100959"><![CDATA[
Ok so every use can use !getaops #channel2 (if any user uses this command but instead of #channel2 he add something else he will receive another message)<br><br>Removed the part where only admins can use this command<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !getaops get_aopsproc get_aops {nick uhost hand chan text} {set aop [lindex [split $text] 0]if {$aop == "#channel2"} {putserv "PRIVMSG$chan :omg the ops for this channel are name name2"} else {putserv "PRIVMSG $chan :valid command !getaops #channel2"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sun Feb 10, 2013 5:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slowpoke23]]></name></author>
		<updated>2013-02-10T05:22:58-04:00</updated>

		<published>2013-02-10T05:22:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100958#p100958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100958#p100958"/>
		<title type="html"><![CDATA[Reply to the command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100958#p100958"><![CDATA[
OK so I have the following code, How can I make it reply to say !getaops #ChaNneL2 when its set as #channel2 in the script<br><br>And if its not set to #Channel3 and someone does !getaops #channel3 can it return a error?<br><br> <blockquote class="uncited"><div>bind pub n !getaops get_aops<br>proc get_aops {nick uhost hand chan text} {<br>global botnick<br><br>set aop [lindex $text 0]<br>if {$aop == "#channel2"} {<br>  putserv "privmsg $chan :omg the ops for this channel are name name2"<br>}<br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12192">slowpoke23</a> — Sun Feb 10, 2013 5:22 am</p><hr />
]]></content>
	</entry>
	</feed>
