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

	<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>2002-09-10T19:54:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-10T19:54:36-04:00</updated>

		<published>2002-09-10T19:54:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10754#p10754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10754#p10754"/>
		<title type="html"><![CDATA[help with spliting a long phrase]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10754#p10754"><![CDATA[
thanks again for your patience <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>have a nice day, night or whatever<p>Statistics: Posted by Guest — Tue Sep 10, 2002 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-10T16:23:12-04:00</updated>

		<published>2002-09-10T16:23:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10750#p10750</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10750#p10750"/>
		<title type="html"><![CDATA[help with spliting a long phrase]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10750#p10750"><![CDATA[
In most scripting/programming languages, there is a way of using long parameters, by placing them within ""'s.<br><br>However, in the IRC protocol, they don't use "", as they can be used within normal text.<br><br>As such, any commands requiring/able to take multi word parameters, allways take this parameter last.<br><br>Usign the PRIVMSG command as an example.<br><br>PRIVMSG ppslim hello to you<br>PRIVMSG ppslim :hello to you<br><br>The first version would only display the word "hello"<br>The second would display "hello to you".<br><br>The : is used to specify the start of the last parameter, in commands where a parameter is multi word.<br><br>The only reason it is used as the start, is so that : can be used within the parameter.<br><br>Thus<br>PRIVMSG ppslim ::Hello to: you<br>Would send ":Hello to: you"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Sep 10, 2002 4:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-10T16:14:42-04:00</updated>

		<published>2002-09-10T16:14:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10748#p10748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10748#p10748"/>
		<title type="html"><![CDATA[help with spliting a long phrase]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10748#p10748"><![CDATA[
Thanks , now works fine !!!<br><br>can you explain the diference using the : or not ???<br><br>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by Guest — Tue Sep 10, 2002 4:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-10T14:54:36-04:00</updated>

		<published>2002-09-10T14:54:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10740#p10740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10740#p10740"/>
		<title type="html"><![CDATA[help with spliting a long phrase]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10740#p10740"><![CDATA[
Very simple mistake, you have your : in the wrong place in the privmsg.<br><br>puthelp "privmsg $who :$saida"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Sep 10, 2002 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-10T14:49:33-04:00</updated>

		<published>2002-09-10T14:49:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10739#p10739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10739#p10739"/>
		<title type="html"><![CDATA[help with spliting a long phrase]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10739#p10739"><![CDATA[
i have the one string with this 'PVT some text to send | some more text to send | and some more text too'<br><br>what i pretend is to remove PVT from string (regsub -all -- "*PVT*" $string "" string) and next split the string by "|" and send to user all the splited strings... something similar to explode () of PHP... but in this code i create... the remove of PVT works ok... but i only get the first word of the splited string...<br><br>in the string exemple i wrote before the output gived is something like this:<br><br>-some<br>-some<br>-and<br><br>i pretend something like:<br><br>-some text to send<br>-some more text to send<br>-and some more text too<br><br> i'm very new to TCL ...  one day...<br>i can't figure what i'm doing wrong... logicaly seems correct... i think is some bad utilization of split....<br><br>thanks for any help<p>Statistics: Posted by Guest — Tue Sep 10, 2002 2:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-10T13:12:59-04:00</updated>

		<published>2002-09-10T13:12:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10733#p10733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10733#p10733"/>
		<title type="html"><![CDATA[help with spliting a long phrase]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10733#p10733"><![CDATA[
You need to provide more info, cause i don't see where do you get the splitchar from. If you are generating it in your regsub, replacing PVT with | then you have a typo there. <br><br>Your replace string is "" instead of "|".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Tue Sep 10, 2002 1:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-10T11:37:01-04:00</updated>

		<published>2002-09-10T11:37:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10729#p10729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10729#p10729"/>
		<title type="html"><![CDATA[help with spliting a long phrase]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10729#p10729"><![CDATA[
changing a tcl script for what i need... i made this piece of code<br><br>i made this piece of code <div class="codebox"><p>Code: </p><pre><code>if {[string match "*PVT*" $response]}{regsub -all -- "PVT" $response "" responseset comando [split $response |]foreach saida $comando { puthelp "PRIVMSG $who: $saida" }}</code></pre></div>what i pretend is to split a long phrase initiated by "PRV" and the point of split is marked with a "|" but this code i only get the first word between any "|" ... whats wrong or how i can resolve this problem ???<br><br>Thanks<p>Statistics: Posted by Guest — Tue Sep 10, 2002 11:37 am</p><hr />
]]></content>
	</entry>
	</feed>
