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

	<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>2003-08-27T14:38:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2003-08-27T14:38:09-04:00</updated>

		<published>2003-08-27T14:38:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25770#p25770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25770#p25770"/>
		<title type="html"><![CDATA[Getting a chan key]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25770#p25770"><![CDATA[
thanks user. worked a treat  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Wed Aug 27, 2003 2:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-27T01:40:02-04:00</updated>

		<published>2003-08-27T01:40:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25719#p25719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25719#p25719"/>
		<title type="html"><![CDATA[Getting a chan key]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25719#p25719"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>lindex [split $currentmodes] 1</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 27, 2003 1:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2003-08-26T17:53:02-04:00</updated>

		<published>2003-08-26T17:53:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25707#p25707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25707#p25707"/>
		<title type="html"><![CDATA[Getting a chan key]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25707#p25707"><![CDATA[
Hi there.<br> <br>I'm not new to eggdrop's but i am fairly new to scripting. I have written about 10 scripts for my personal use mainly !trigger related scripts and i am trying to write a script to retrive the key from a channel i specify that the bot is in.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>I have gotten so far but the bot seems to retrieve the number of people in the channel rather than the key that is set. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><br> <br>All i need is the line that retrieves the channel key if any of you could possibly help me.<br><br>Here is the proc i have written to retrieve the key<br><br>proc currentkey {chan} {<br>    set currentmodes [getchanmode $chan]<br>    if {[string match "*k*" [lindex $currentmodes 0 ]]} {<br>return [lindex $currentmodes end] <br>    }<br>    return 0<br>}<br><br>please try not to laugh at my code too much  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br>Thanks in advance. Jon.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Tue Aug 26, 2003 5:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
