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

	<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>2012-05-13T10:58:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Torrevado]]></name></author>
		<updated>2012-05-13T10:58:23-04:00</updated>

		<published>2012-05-13T10:58:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99402#p99402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99402#p99402"/>
		<title type="html"><![CDATA[botonchan problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99402#p99402"><![CDATA[
Yes, solving that typo, it works.<br><br>Thank you very much, willyw  <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=8047">Torrevado</a> — Sun May 13, 2012 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-05-12T23:00:34-04:00</updated>

		<published>2012-05-12T23:00:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99398#p99398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99398#p99398"/>
		<title type="html"><![CDATA[Re: if ![botonchan $channel]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99398#p99398"><![CDATA[
Put a space between $nick and the colon.<br><div class="codebox"><p>Code: </p><pre><code>if {![validchan $channel]} {putserv "NOTICE $nick :I'm not on $channel"}</code></pre></div>Experiment with it that way.<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat May 12, 2012 11:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Torrevado]]></name></author>
		<updated>2012-05-12T17:38:12-04:00</updated>

		<published>2012-05-12T17:38:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99396#p99396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99396#p99396"/>
		<title type="html"><![CDATA[botonchan problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99396#p99396"><![CDATA[
Hi, writing a very simple script containing /msg commands related to channel's stuff such op, deop, topic, etc.<br><br>I'm trying to make eggdrop send a msg to $nick when he requests a command for a channel where the bot is not on.<br>So, for an input /msg op #chan &lt;nick&gt; it would send a response "I'm not in #channel" (in the console there is already a message <span style="color:red">Tcl error [giveop]: illegal channel: #channelname</span>).<br><br>This is a  sample part of the script<br><div class="codebox"><p>Code: </p><pre><code>bind msg o|o op giveop proc giveop {nick uhost handle text} { global botnick set nickopped "[lindex [split $text] 1]" set channel "[lindex [split $text] 0]"if {![onchan $nickopped $channel]} {putserv "NOTICE $nick :$nickopped is not on $channel"return 1}putserv "MODE $channel +o $nickopped }</code></pre></div><br>I tried several things but none of them didn't work<br><div class="codebox"><p>Code: </p><pre><code>if {![botonchan $channel]} {putserv "NOTICE $nick: I'm not on $channel"}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>if {![onchan $botnick $channel]} {putserv "NOTICE $nick: I'm not on $channel"}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>if {![validchan $channel]} {putserv "NOTICE $nick: I'm not on $channel"}</code></pre></div>Could someone explain me why doesn't work this way? Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8047">Torrevado</a> — Sat May 12, 2012 5:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
