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

	<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-02-22T08:54:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-22T08:51:55-04:00</updated>

		<published>2003-02-22T08:51:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16925#p16925</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16925#p16925"/>
		<title type="html"><![CDATA[botonchan problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16925#p16925"><![CDATA[
Doh! Use what egghead sugested.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Feb 22, 2003 8:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-02-22T08:54:18-04:00</updated>

		<published>2003-02-22T08:49:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16924#p16924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16924#p16924"/>
		<title type="html"><![CDATA[botonchan problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16924#p16924"><![CDATA[
But -1 for an illegal channel would be better than an tcl error... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thanks for the trick with validchan, this works great..<br><br>Well, could anyone also tell me how to get the right case for the channels? <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=1729">ProXy</a> — Sat Feb 22, 2003 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-02-22T03:33:58-04:00</updated>

		<published>2003-02-22T03:33:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16909#p16909</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16909#p16909"/>
		<title type="html"><![CDATA[Re: botonchan problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16909#p16909"><![CDATA[
<blockquote class="uncited"><div>Hello,<br><br>I simply want to check if my eggdrop is on a specific channel. I found "botonchan", but when the eggdrop is not on the channel [botonchan #abc] doesn`t report 0 or -1, but reports an tcl error! This is really crazy, because most people ...[snip]</div></blockquote>To me the response makes great sense. If [botonchan] would report "0" on an "illegal channel", it suggests that the bot has a channel record for that chan or is attempting to join that channel.<br><br>What you should have used is [validchan] followed by [botonchan].<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sat Feb 22, 2003 3:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-02-21T23:41:58-04:00</updated>

		<published>2003-02-21T23:41:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16899#p16899</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16899#p16899"/>
		<title type="html"><![CDATA[botonchan problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16899#p16899"><![CDATA[
Well, thanks for this solution. I will try this to make sure, that the eggdrop really is on the channel, but I guess "botonchan" isn`t very useful, if it produces an error, that must be catched <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Perhaps this can be improved within the next eggdrop versions...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Fri Feb 21, 2003 11:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-02-21T23:27:08-04:00</updated>

		<published>2003-02-21T23:27:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16898#p16898</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16898#p16898"/>
		<title type="html"><![CDATA[botonchan problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16898#p16898"><![CDATA[
Easy solution, use the 'catch' command in tcl.<br><br>if {[catch {botonchan $chan} result]} { set result 0 }<br><br># now $result is 0 if bot is not on $chan, 1 if it is<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Feb 21, 2003 11:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-02-21T22:55:01-04:00</updated>

		<published>2003-02-21T22:55:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16897#p16897</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16897#p16897"/>
		<title type="html"><![CDATA[botonchan problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16897#p16897"><![CDATA[
Hello,<br><br>I simply want to check if my eggdrop is on a specific channel. I found "botonchan", but when the eggdrop is not on the channel [botonchan #abc] doesn`t report 0 or -1, but reports an tcl error! This is really crazy, because most people would use botonchan to check if the eggdrop is on that channel, to prevent errors. Is there any other way, to check if the eggdrp is on the given channel?<br><br>The only way I can think of, is to make a foreach with all channels, the bot currently is on, and to check if the given channel also is in this list. But this method would be something slower that botonchan.<br><br>There`s also a second question, which solution seems very difficult to me:<br>If a user uses a public command and the argument send to the procedure is a channel, the user often doesn`t know the case sesitive of the channel. In most cases, those user will type the channel lowercase, which is no problem to check, if the eggdrop is on, but what could I do, to answer "Yes, I am on '$channel'!" with $channel is case sensitive like than channel really is named. I only have one idea to solve this, but this seems very unusual to me. Any other suggestions?<br><br>Greetings,<br>ProXy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Fri Feb 21, 2003 10:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
