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

	<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-27T19:27:44-04:00</updated>

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

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

		<published>2003-08-27T19:27:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25809#p25809</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25809#p25809"/>
		<title type="html"><![CDATA[THANKYOU]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25809#p25809"><![CDATA[
thankyou so much user.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>you were right it was something else in my proc that i had that was throwing the error up. i had loads of usless stuff in it heh<br><br>i can tell im a newbie /me bows down <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>Seriously tho thanks again.<br><br>Jon.<br><blockquote class="uncited"><div>p.s. (i also tested it with the limit and it still retrieves the key)</div></blockquote>thanks for mentioning it tho i never thought to test that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Wed Aug 27, 2003 7:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-27T19:22:56-04:00</updated>

		<published>2003-08-27T19:22:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25808#p25808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25808#p25808"/>
		<title type="html"><![CDATA[Re: A few ideas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25808#p25808"><![CDATA[
<blockquote class="uncited"><div>Of course, if there is a limit (+l) on the chan, and happens to be before the +k, then you will be returning the chanlimit instead of the key  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"></div></blockquote>Nope. (the key is always the second element if there's a key)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 27, 2003 7:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-08-27T19:19:19-04:00</updated>

		<published>2003-08-27T19:19:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25807#p25807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25807#p25807"/>
		<title type="html"><![CDATA[Re: A few ideas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25807#p25807"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>proc getKey {chan} {if {![validchan $chan]||![botonchan $chan]} {return "I'm not on $chan"}if {![string match *k* [getchanmode $chan]]} {return "There's no key on $chan"}if {![botisop $chan]} {return "I'm not oped on $chan (i need to be to see the key :P)"}return "The key on $chan is '[lindex [split [getchanmode $chan]] 1]' :)"}</code></pre></div></div></blockquote>Of course, if there is a limit (+l) on the chan, and happens to be before the +k, then you will be returning the chanlimit instead of the key  <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=2005">strikelight</a> — Wed Aug 27, 2003 7:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-27T18:52:12-04:00</updated>

		<published>2003-08-27T18:52:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25805#p25805</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25805#p25805"/>
		<title type="html"><![CDATA[A few ideas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25805#p25805"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc getKey {chan} {if {![validchan $chan]||![botonchan $chan]} {return "I'm not on $chan"}if {![string match *k* [getchanmode $chan]]} {return "There's no key on $chan"}if {![botisop $chan]} {return "I'm not oped on $chan (i need to be to see the key :P)"}return "The key on $chan is '[lindex [split [getchanmode $chan]] 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 6:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2003-08-27T18:44:52-04:00</updated>

		<published>2003-08-27T18:44:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25804#p25804</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25804#p25804"/>
		<title type="html"><![CDATA[error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25804#p25804"><![CDATA[
the bot doesnt die it just throws up this in dcc <br><br>[23:42] Tcl error [get_key]: invalid channel: #testchan<br><br>not to worry im sure ill get there in the end. thanks again for your help<br><br>Jon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Wed Aug 27, 2003 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-27T18:26:30-04:00</updated>

		<published>2003-08-27T18:26:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25801#p25801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25801#p25801"/>
		<title type="html"><![CDATA[Re: validchan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25801#p25801"><![CDATA[
<blockquote class="uncited"><div>it still throws up the same error as before</div></blockquote>Then the error must be some place else. Did you read the entire error message? (while executing ...something...)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 27, 2003 6:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2003-08-27T17:58:14-04:00</updated>

		<published>2003-08-27T17:58:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25797#p25797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25797#p25797"/>
		<title type="html"><![CDATA[validchan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25797#p25797"><![CDATA[
<blockquote class="uncited"><div>Check out 'validchan' (explained in tcl-commands.doc)</div></blockquote>i read the small explination in that doc which i didnt know existed till now. thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> basically all it said was that using validchan returns a 1 or a 0 depending if the bot is in channel or not which is what i need but it still throws up the same error as before when using it<br><div class="codebox"><p>Code: </p><pre><code>if {[validchan $chan] == "0"} {            putserv "NOTICE $nick :$nick I'm not on $chan"            return    }</code></pre></div>Jon.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Wed Aug 27, 2003 5:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-27T17:12:49-04:00</updated>

		<published>2003-08-27T17:12:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25783#p25783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25783#p25783"/>
		<title type="html"><![CDATA[help again please..!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25783#p25783"><![CDATA[
Check out 'validchan' (explained in tcl-commands.doc)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 27, 2003 5:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2003-08-27T16:58:44-04:00</updated>

		<published>2003-08-27T16:58:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25779#p25779</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25779#p25779"/>
		<title type="html"><![CDATA[help again please..!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25779#p25779"><![CDATA[
Hi again this bit of script is really starting to annoy <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I'm trying to get my bot to display a notice saying "I'm not in #channel" when the user triggers the procedure. in my tcl i have set a channel which works great with the rest of the script when the bot is in the set channel. but when i remove the bot id like it to notice the user of the trigger when its not in the set channel.<br><br>Following so far? im glad one of us is  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>heres the part of my code which might explain a bit better..<br><div class="codebox"><p>Code: </p><pre><code>set keychan "#testchan"if {[onchan $botnick $chan] != $keychan} {        putserv "NOTICE $nick :$nick, I Don't monitor $keychan"        return    }</code></pre></div>the error that is returned is this.<br><blockquote class="uncited"><div>Tcl error [get_key]: invalid channel: #testchan</div></blockquote><br>Thanks again. Jon.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Wed Aug 27, 2003 4:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
