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

	<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>2005-08-25T09:58:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-08-25T09:58:57-04:00</updated>

		<published>2005-08-25T09:58:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54795#p54795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54795#p54795"/>
		<title type="html"><![CDATA[need some tcl :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54795#p54795"><![CDATA[
metroid, try your script with nicknames such as {abc} or {abc}d<br>it probably wont do what you want  <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=2369">spock</a> — Thu Aug 25, 2005 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-08-25T02:53:38-04:00</updated>

		<published>2005-08-25T02:53:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54784#p54784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54784#p54784"/>
		<title type="html"><![CDATA[need some tcl :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54784#p54784"><![CDATA[
Actually wrong, Using join is a very good idea incase of braces.<br><br>If the command gets used and the nickname contains brackets split will add braces around it and join removes those braces.<br><br>But ofcourse you can just make the code not make useless variables<br><div class="codebox"><p>Code: </p><pre><code>bind pub n !setnick change:nickproc change:nick {n u h c a} { set ::nick [join [lindex [split $a] 0]]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Aug 25, 2005 2:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2005-08-19T20:02:09-04:00</updated>

		<published>2005-08-19T20:02:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54506#p54506</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54506#p54506"/>
		<title type="html"><![CDATA[need some tcl :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54506#p54506"><![CDATA[
<blockquote class="uncited"><div>This will change the botnick until the next rehash/restart.<br>For a permanent nickchange you have to manually change it in the config file.<div class="codebox"><p>Code: </p><pre><code>bind pub n !setnick fooproc foo {n u h c a} { set nick [lindex [split $a] 0] set ::nick [join $nick]}</code></pre></div></div></blockquote>Well, small correction. lindex will return you a string and not a list. With that reason there is really no need to join this string. lrange and lindex are list commands. But other then lrange will lindex return a string.<br>set ::nick [join $nick] --&gt; set ::nick $nick<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Fri Aug 19, 2005 8:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-19T15:28:45-04:00</updated>

		<published>2005-08-19T15:28:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54496#p54496</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54496#p54496"/>
		<title type="html"><![CDATA[need some tcl :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54496#p54496"><![CDATA[
eggdrop should have [bind pub] unavailable to owners, controlling the bot that way is incredibly lame<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Aug 19, 2005 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ian-Highlander]]></name></author>
		<updated>2005-08-19T13:50:41-04:00</updated>

		<published>2005-08-19T13:50:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54494#p54494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54494#p54494"/>
		<title type="html"><![CDATA[need some tcl :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54494#p54494"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub n !setnick nick_changeproc nick_change {nick host handle channel rest} {global keep-nickset new_nick [lindex [split $rest] 0]set keep-nick 0putserv "NICK $new_nick"return 0}</code></pre></div>Edit: greenbear beat me to it, his code is nicer, use that <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=17">Ian-Highlander</a> — Fri Aug 19, 2005 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-08-19T13:38:25-04:00</updated>

		<published>2005-08-19T13:38:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54493#p54493</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54493#p54493"/>
		<title type="html"><![CDATA[need some tcl :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54493#p54493"><![CDATA[
This will change the botnick until the next rehash/restart.<br>For a permanent nickchange you have to manually change it in the config file.<div class="codebox"><p>Code: </p><pre><code>bind pub n !setnick fooproc foo {n u h c a} { set nick [lindex [split $a] 0] set ::nick [join $nick]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Aug 19, 2005 1:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ZoneISP]]></name></author>
		<updated>2005-08-19T12:50:23-04:00</updated>

		<published>2005-08-19T12:50:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54492#p54492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54492#p54492"/>
		<title type="html"><![CDATA[need some tcl :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54492#p54492"><![CDATA[
hi again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> i want command that owner type !setnick harry` the bot chabged it to harry` anyone can help with me this plz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6293">ZoneISP</a> — Fri Aug 19, 2005 12:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
