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

	<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>2008-03-23T10:06:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-03-23T10:06:20-04:00</updated>

		<published>2008-03-23T10:06:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81984#p81984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81984#p81984"/>
		<title type="html"><![CDATA[Telnet Commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81984#p81984"><![CDATA[
The problem is in your procedure header declarations...<br>Pub binds are called with only "nick host hand chan text" arguments. <br>You cannot simply write what you want Tcl to do automatically, expecting it to work.  See tcl-commands.doc that come with eggdrop, re: binds, and the arguments that those binds are called with.  Also note, that variable referencing is done with a $ in front of the variable name.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Mar 23, 2008 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-03-23T07:15:28-04:00</updated>

		<published>2008-03-23T07:15:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81981#p81981</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81981#p81981"/>
		<title type="html"><![CDATA[Telnet Commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81981#p81981"><![CDATA[
?lifetime? and ?option? are optional settings (hence the '?'), you either add a lifetime (a valid number) and an option (sticky) or you don't. So you should use<div class="codebox"><p>Code: </p><pre><code>newchanexempt $chan $whom $nick 0 sticky</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Mar 23, 2008 7:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-03-23T05:41:54-04:00</updated>

		<published>2008-03-23T05:41:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81980#p81980</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81980#p81980"/>
		<title type="html"><![CDATA[Telnet Commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81980#p81980"><![CDATA[
Ok, thanks.<br><br>I read it, and I'm getting errors.<br><br><br><br>Code:<div class="codebox"><p>Code: </p><pre><code>bind pub o|o "@e" exemptbind pub o|o "@I" inviteproc exempt { nick host hand chan text creator ?liftime? ?options? } { set whom [lindex $text 0]set howlong [lindex $text 1]newchanexempt $chan $whom $nick ?lifetime? 0 ?options? sticky}proc invite { nick host hand chan text creator ?liftime? ?options? } { set whom [lindex $text 0]set howlong [lindex $text 1]newchaninvite $chan $whom $nick ?lifetime? 0 ?options? sticky}</code></pre></div><br>Errors:<div class="codebox"><p>Code: </p><pre><code>[05:42] Tcl error [exempt]: wrong # args: should be "exempt nick host hand chan text creator ?liftime? ?options?"[05:44] Tcl error [invite]: wrong # args: should be "invite nick host hand chan text creator ?liftime? ?options?"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Sun Mar 23, 2008 5:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-03-22T21:15:01-04:00</updated>

		<published>2008-03-22T21:15:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81971#p81971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81971#p81971"/>
		<title type="html"><![CDATA[Telnet Commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81971#p81971"><![CDATA[
Read Tcl-commands.doc about the newexempt, newchanexempt, newinvite, and newchaninvite commands.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Mar 22, 2008 9:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-03-22T20:08:51-04:00</updated>

		<published>2008-03-22T20:08:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81969#p81969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81969#p81969"/>
		<title type="html"><![CDATA[Telnet Commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81969#p81969"><![CDATA[
I'm having a little problem with the +exempt and +invite:<br><br><br><br><br>Script:<div class="codebox"><p>Code: </p><pre><code>bind pub o|o "@e" exemptbind pub o|o "@I" inviteproc exempt { nick host hand chan text } { set whom [lindex $text 0]set howlong [lindex $text 1]+exempt $whom $chan $howlongstick exempt $whom}proc invite { nick host hand chan text } { set whom [lindex $text 0]set howlong [lindex $text 1]+invite $whom $chan $howlongstick exempt $whom}</code></pre></div>Error:<div class="codebox"><p>Code: </p><pre><code>[20:05] Tcl error [exempt]: invalid command name "+exempt"[20:09] Tcl error [invite]: invalid command name "+invite"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Sat Mar 22, 2008 8:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-03-22T19:49:26-04:00</updated>

		<published>2008-03-22T19:49:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81968#p81968</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81968#p81968"/>
		<title type="html"><![CDATA[Telnet Commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81968#p81968"><![CDATA[
Thank you so much! <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=9196">Branden</a> — Sat Mar 22, 2008 7:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2008-03-22T19:45:40-04:00</updated>

		<published>2008-03-22T19:45:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81967#p81967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81967#p81967"/>
		<title type="html"><![CDATA[Telnet Commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81967#p81967"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub -|- !restart restart:replybind pub -|- !rehash rehash:replyproc restart:reply {nick host handle channel text} { if {![isop $nick $channel]} {return }restart}proc rehash:reply {nick host handle channel text} { if {![isop $nick $channel]} {return}rehash}</code></pre></div><br>this will allow ops to use !restart and !rehash<br><br><br>tueb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Sat Mar 22, 2008 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-03-22T18:30:45-04:00</updated>

		<published>2008-03-22T18:30:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81966#p81966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81966#p81966"/>
		<title type="html"><![CDATA[Telnet Commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81966#p81966"><![CDATA[
How can I have the bot execute commands such as REHASH and RESTART via public chat commands?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Sat Mar 22, 2008 6:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
