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

	<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-02-20T18:31:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[janii]]></name></author>
		<updated>2012-02-20T18:31:47-04:00</updated>

		<published>2012-02-20T18:31:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98833#p98833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98833#p98833"/>
		<title type="html"><![CDATA[help with server tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98833#p98833"><![CDATA[
Thanx speechless now its working perfect... and special thnx to Johannes13 for helping and working on this tcl .. thanks once again guys<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11746">janii</a> — Mon Feb 20, 2012 6:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2012-02-16T04:27:22-04:00</updated>

		<published>2012-02-16T04:27:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98808#p98808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98808#p98808"/>
		<title type="html"><![CDATA[help with server tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98808#p98808"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>namespace eval ::jumptrigger {   if {[info exists serverlist]} { unset serverlist }   variable serverlist   array set serverlist {      punch punch.va.us.dal.net      krypt krypt.ca.us.dal.net   }   bind pubm m|- * [namespace current]::dojump   proc dojump {n u h c t} {      variable serverlist      if {[string index $t 0] eq "!"} {         set srv [string range $t 1 end]         if {[info exists serverlist($srv)]} {            jump $serverlist($srv)         }      }   }}</code></pre></div>Added code to de-init server list and reset it into local namespace as an array.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Feb 16, 2012 4:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[janii]]></name></author>
		<updated>2012-02-15T18:47:38-04:00</updated>

		<published>2012-02-15T18:47:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98807#p98807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98807#p98807"/>
		<title type="html"><![CDATA[help with server tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98807#p98807"><![CDATA[
still not working same error<br>if its not working on array thn do lemme knw how to install tcl 8.5 in my eggdrop bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11746">janii</a> — Wed Feb 15, 2012 6:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Johannes13]]></name></author>
		<updated>2012-02-13T16:17:14-04:00</updated>

		<published>2012-02-13T16:17:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98784#p98784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98784#p98784"/>
		<title type="html"><![CDATA[help with server tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98784#p98784"><![CDATA[
make sure there is no older script that uses the ::jumptrigger namespace.<br>And make sure there is no set jumptrigger {...} statement, only array set jumptrigger {...}<br>(.rehash with the new script without unsetting jumptrigger::serverlist could have caused this)<br><br>ohh, and I made some mistakes.. (I should use paste.tclhelp.net to check it)<div class="codebox"><p>Code: </p><pre><code>namespace eval ::jumptrigger {array set serverlist {punch punch.va.us.dal.netkrypt krypt.ca.us.dal.net}bind pubm m|- * [namespace current]::dojumpproc dojump {n u h c t} {variable serverlistif {[string index $t 0] eq "!"} {set srv [string range $t 1 end]if {[info exists serverlist($srv)]} {jump $serverlist($srv)}}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11381">Johannes13</a> — Mon Feb 13, 2012 4:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[janii]]></name></author>
		<updated>2012-02-13T14:28:53-04:00</updated>

		<published>2012-02-13T14:28:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98780#p98780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98780#p98780"/>
		<title type="html"><![CDATA[help with server tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98780#p98780"><![CDATA[
thnx for helping so much <br>but m still having problem running this code now i got the below error<br>&lt;(Trivia&gt; [22:12:27] can't set "serverlist(punch)": variable isn't array<br>&lt;(Trivia&gt;     while executing<br>&lt;(Trivia&gt; "array set serverlist { <br>&lt;(Trivia&gt;     punch punch.va.us.dal.net <br>&lt;(Trivia&gt;     krypt krypt.ca.us.dal.net <br>&lt;(Trivia&gt;     choopa choopa.nj.us.dal.net<br>&lt;(Trivia&gt;     under underworld.se.eu.dal.n..."<br>&lt;(Trivia&gt;     (in namespace eval "::jumptrigger" script line 2)<br>&lt;(Trivia&gt;     invoked from within<br>&lt;(Trivia&gt; "namespace eval ::jumptrigger { <br>&lt;(Trivia&gt;   array set serverlist { <br>&lt;(Trivia&gt;     punch punch.va.us.dal.net <br>&lt;(Trivia&gt;     krypt krypt.ca.us.dal.net <br>&lt;(Trivia&gt;     choopa choopa.nj.us.dal.ne..."<br>&lt;(Trivia&gt;     (file "scripts/server.t<br>&lt;(Trivia&gt; [22:12:27] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br>&lt;(Trivia&gt; [11] Chat closed<br>Please help resolving this error <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=11746">janii</a> — Mon Feb 13, 2012 2:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Johannes13]]></name></author>
		<updated>2012-02-12T11:10:09-04:00</updated>

		<published>2012-02-12T11:10:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98770#p98770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98770#p98770"/>
		<title type="html"><![CDATA[help with server tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98770#p98770"><![CDATA[
Ok, you need at least tcl 8.5 for this.<br>Reinstall tcl and recompile eggdrop.<br><br>to add servers, look at this bit:<div class="codebox"><p>Code: </p><pre><code>set serverlist {    punch punch.va.us.dal.net    krypt krypt.ca.us.dal.net  } </code></pre></div>If you want to add foo,<br>you want to change it to<div class="codebox"><p>Code: </p><pre><code>set serverlist {    punch punch.va.us.dal.net    krypt krypt.ca.us.dal.net    foo foo.bar.dal.net  } </code></pre></div>(I don't know the names of all dal net servers, so foo is just an example.<br>And I'm too lazy to look them up for you.<br><br>mhh, I might create a version based on arrays, that will work with tcl 8.4<br><div class="codebox"><p>Code: </p><pre><code>namespace eval ::jumptrigger {  array set serverlist {    punch punch.va.us.dal.net    krypt krypt.ca.us.dal.net  }  bind pubm m|- * [namespace current]::dojump   proc dojump {n u h c t} {    variable serverlist    if {[string index $t 0] eq "!"} {      set srv [string range $t 1 end]      if {[info exist $serverlist($srv)]} {        jump $serverlist($srv)]      }    }  }}</code></pre></div>Ok, one last thing: if you want that other guys than masters can use this command, change in line <div class="codebox"><p>Code: </p><pre><code>  bind pubm m|- * [namespace current]::dojump</code></pre></div> m|- with the flags you want to allow. See .help whois<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11381">Johannes13</a> — Sun Feb 12, 2012 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[janii]]></name></author>
		<updated>2012-02-10T19:37:38-04:00</updated>

		<published>2012-02-10T19:37:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98761#p98761</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98761#p98761"/>
		<title type="html"><![CDATA[ty]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98761#p98761"><![CDATA[
thank you for the help but i need a further help with thanx<br>problem is this code is working with eggdrop v1.6.20, on FreeBSD 7.3-RELEASE-p10.<br>but not on<br>eggdrop v1.6.20, on FreeBSD 8.0-RELEASE-p6.<br>i get this error in party line on freebsd 8.0<br>Tcl error [::jumptrigger::dojump]: invalid command name "dict"<br>any help regarding this is appreciated <br>and how can i add few nicks to use the !punch !krypt command in place of just bot masters<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11746">janii</a> — Fri Feb 10, 2012 7:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Johannes13]]></name></author>
		<updated>2012-01-31T14:04:24-04:00</updated>

		<published>2012-01-31T14:04:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98655#p98655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98655#p98655"/>
		<title type="html"><![CDATA[help with server tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98655#p98655"><![CDATA[
Sounds easy...<br>But YOU have to setup all the servers...<br><br>Ohh, and I limited it to bot masters.<br><div class="codebox"><p>Code: </p><pre><code>namespace eval ::jumptrigger {  set serverlist {    punch punch.va.us.dal.net    krypt krypt.ca.us.dal.net  }  bind pubm m|- * [namespace current]::dojump    proc dojump {n u h c t} {    variable serverlist    if {[string index $t 0] eq "!"} {      set srv [string range $t 1 end]      if {[dict exist $serverlist $srv]} {        jump [dict get $serverlist $srv]      }    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11381">Johannes13</a> — Tue Jan 31, 2012 2:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[janii]]></name></author>
		<updated>2011-12-30T16:01:06-04:00</updated>

		<published>2011-12-30T16:01:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98440#p98440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98440#p98440"/>
		<title type="html"><![CDATA[noone]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98440#p98440"><![CDATA[
hello can any1 help me on tht?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11746">janii</a> — Fri Dec 30, 2011 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-12-07T10:40:49-04:00</updated>

		<published>2011-12-07T10:40:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98352#p98352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98352#p98352"/>
		<title type="html"><![CDATA[help with server tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98352#p98352"><![CDATA[
<span style="color:red">Moderated: Moved to "Script Request"<br><br>/NML_375</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Dec 07, 2011 10:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[janii]]></name></author>
		<updated>2011-12-06T21:24:57-04:00</updated>

		<published>2011-12-06T21:24:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98345#p98345</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98345#p98345"/>
		<title type="html"><![CDATA[help with server tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98345#p98345"><![CDATA[
hello i want a tcl for dalnet like this <br>!punch<br>and the bot shall jump to punch.va.us.dal.net<br>!krypt<br>and the bot shall jump to krypt.ca.us.dal.net<br><br>and only specified users shall use this command in the channel any help will be appreciated thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11746">janii</a> — Tue Dec 06, 2011 9:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
