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

	<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-06-13T06:59:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-13T06:59:13-04:00</updated>

		<published>2003-06-13T06:59:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21753#p21753</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21753#p21753"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21753#p21753"><![CDATA[
TnX<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Jun 13, 2003 6:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-13T06:54:14-04:00</updated>

		<published>2003-06-13T06:54:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21752#p21752</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21752#p21752"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21752#p21752"><![CDATA[
yes <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=852">Papillon</a> — Fri Jun 13, 2003 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-13T06:48:23-04:00</updated>

		<published>2003-06-13T06:48:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21751#p21751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21751#p21751"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21751#p21751"><![CDATA[
set arg [split $arg] <br>set usr1 [lindex $arg 0] <br>set usr2 [lindex $arg 1] <br>set usr3 [lindex $arg 2] <br>set text [join [lrange $arg 3 end]]<br><br>can i also use it like this ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Jun 13, 2003 6:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-12T15:47:32-04:00</updated>

		<published>2003-06-12T15:47:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21744#p21744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21744#p21744"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21744#p21744"><![CDATA[
TnX works great<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Jun 12, 2003 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-12T14:01:28-04:00</updated>

		<published>2003-06-12T14:01:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21733#p21733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21733#p21733"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21733#p21733"><![CDATA[
The { is there because lrange returns a list. In Tcl, when you print a list as text, it puts { } around it so you know it's a list. To make it into a proper string, you have to use the 'join' command (which joins the elements into a string). Note, lindex also returns a string, because this is a list of strings (words). So, it should look like this:<br><br>set arg [split $arg]<br>set usr [lindex $arg 0]<br>set text [join [lrange $arg 1 end]]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Jun 12, 2003 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-12T13:45:07-04:00</updated>

		<published>2003-06-12T13:45:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21730#p21730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21730#p21730"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21730#p21730"><![CDATA[
i see hehe nice it adds an \ before the { tnx man probably won't use it ever but nice to know for futur scripting hehe <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Jun 12, 2003 1:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-12T07:14:04-04:00</updated>

		<published>2003-06-12T07:14:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21714#p21714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21714#p21714"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21714#p21714"><![CDATA[
just change<div class="codebox"><p>Code: </p><pre><code>set text [lindex $arg 1]</code></pre></div> to<div class="codebox"><p>Code: </p><pre><code>set text [lrange $arg 1 end]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jun 12, 2003 7:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-12T07:12:16-04:00</updated>

		<published>2003-06-12T07:12:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21713#p21713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21713#p21713"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21713#p21713"><![CDATA[
Could you plz change it in the script... i am realy new to this and realy want to understand it well<br><div class="codebox"><p>Code: </p><pre><code>proc send:msg {nick uhost hand chan arg} { global msg send:msg   set arg [split $arg]   set usr [lindex $arg 0]   set text [lindex $arg 1]   putquick "NOTICE $nick :Sending msg.."   putserv "PRIVMSG $usr :mybot is sending you this text #$text"   putserv "NOTICE $nick :Succesfully send msg to [lindex $arg 0]" } </code></pre></div>for example next question would be<br><blockquote class="uncited"><div>  set arg [split $arg] #do i remove this if i add what you say<br>  set usr [lindex $arg 0]  #what about this arg ?? do i change anything about it</div></blockquote>if you just add it to the script i see probably understand if i don't understand ill ask again .. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> and it only takes a second ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Jun 12, 2003 7:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ReaLz]]></name></author>
		<updated>2003-06-12T03:38:39-04:00</updated>

		<published>2003-06-12T03:38:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21704#p21704</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21704#p21704"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21704#p21704"><![CDATA[
try using <div class="codebox"><p>Code: </p><pre><code>set text [lrange $args 1 end]</code></pre></div> instead of <div class="codebox"><p>Code: </p><pre><code>set text [lindex $arg 1]</code></pre></div>  to make the bot tell whole the text and not only the first word after the nick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2044">ReaLz</a> — Thu Jun 12, 2003 3:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-11T19:42:49-04:00</updated>

		<published>2003-06-11T19:42:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21700#p21700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21700#p21700"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21700#p21700"><![CDATA[
like this ??<br><div class="codebox"><p>Code: </p><pre><code>proc send:msg {nick uhost hand chan arg} { global msg send:msg   set arg [split $arg]   set usr [lindex $arg 0]   set text [lindex $arg 1]   putquick "NOTICE $nick :Sending msg.."   putserv "PRIVMSG $usr :mybot is sending you this text #$text"   putserv "NOTICE $nick :Succesfully send msg to [lindex $arg 0]" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Jun 11, 2003 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-11T19:28:57-04:00</updated>

		<published>2003-06-11T19:28:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21699#p21699</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21699#p21699"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21699#p21699"><![CDATA[
I already showed you, at the top of your proc put<br><br>set arg [split $arg]<br><br>exactly like that hehe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jun 11, 2003 7:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-11T18:58:57-04:00</updated>

		<published>2003-06-11T18:58:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21698#p21698</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21698#p21698"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21698#p21698"><![CDATA[
hmm but ill never it use like that .. ?? like i don't know a nick {..<br><br>but how do i use this <blockquote class="uncited"><div>[split $arg]</div></blockquote>show me in script so i can see it ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Jun 11, 2003 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-11T18:52:09-04:00</updated>

		<published>2003-06-11T18:52:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21697#p21697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21697#p21697"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21697#p21697"><![CDATA[
Heh, I think he said to try the { because it will create an error. Your script uses set usr [lindex $arg 0], but if $arg isn't a proper list (like {blah {blah) then it will cause a tcl error. You should put:<br><br>set arg [split $arg]<br><br>at the top of the proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jun 11, 2003 6:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-11T18:51:46-04:00</updated>

		<published>2003-06-11T18:51:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21696#p21696</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21696#p21696"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21696#p21696"><![CDATA[
is there anyway i can relay the notice that is been send to the dcc window or pm reply for that mather back to me ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Jun 11, 2003 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-11T18:49:46-04:00</updated>

		<published>2003-06-11T18:49:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21695#p21695</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21695#p21695"/>
		<title type="html"><![CDATA[hmm i know it is on here somewhere .. ? just can't find it.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21695#p21695"><![CDATA[
stupid me it works no need for the "{" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> tnx man<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Jun 11, 2003 6:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
