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

	<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-01T19:45:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-01T19:45:13-04:00</updated>

		<published>2002-09-01T19:45:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10319#p10319</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10319#p10319"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10319#p10319"><![CDATA[
small &amp;&amp; nice code :)<p>Statistics: Posted by Guest — Sun Sep 01, 2002 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2002-09-01T16:27:10-04:00</updated>

		<published>2002-09-01T16:27:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10308#p10308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10308#p10308"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10308#p10308"><![CDATA[
For one, 50 is alittle short to be cutting it to, as a msg can be a total of 512 chars. I'd use 400 to be safe, being that the nick, etc take up space.. Hell, even 300 if needed. Here is the code I use. It will also not split up words.<br><div class="codebox"><p>Code: </p><pre><code>proc send_privmsg_wrap_text {dest text} {  while {[string compare $text ""] != 0} {    if {[string length $text] &lt;= 400} { putserv "PRIVMSG $dest :$text" ; return }    putserv "PRIVMSG $dest :[string range $text 0 [set lr [string last " " [string range $text 0 400]]]]"    set text [string range $text $lr end]  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Sun Sep 01, 2002 4:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-30T16:33:39-04:00</updated>

		<published>2002-08-30T16:33:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10232#p10232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10232#p10232"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10232#p10232"><![CDATA[
huh... i'll get over it ;)))<br>#thx again...<p>Statistics: Posted by Guest — Fri Aug 30, 2002 4:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-30T04:37:56-04:00</updated>

		<published>2002-08-30T04:37:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10218#p10218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10218#p10218"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10218#p10218"><![CDATA[
Oh crap, I just realised I left a putlog in there.. that will make your partyline REALLY spammy..<br><br>I suggset you remove all putlogs, I used them to debug..<p>Statistics: Posted by Guest — Fri Aug 30, 2002 4:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T22:36:07-04:00</updated>

		<published>2002-08-28T22:36:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10180#p10180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10180#p10180"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10180#p10180"><![CDATA[
No problem<p>Statistics: Posted by Guest — Wed Aug 28, 2002 10:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T18:30:00-04:00</updated>

		<published>2002-08-28T18:30:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10176#p10176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10176#p10176"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10176#p10176"><![CDATA[
cute :) indeed, thank you...<p>Statistics: Posted by Guest — Wed Aug 28, 2002 6:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T18:21:33-04:00</updated>

		<published>2002-08-28T18:21:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10174#p10174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10174#p10174"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10174#p10174"><![CDATA[
Heh, I wrote this then went out. Mine is a little more complex, as it will not split words down.<br><div class="codebox"><p>Code: </p><pre><code>proc splitstring {string strmax} {set strlen [string length $string]putlog "blah - $strlen | blah - $strmax"if {$strlen &gt; $strmax} {set curpos 0set lstartpos 0set lspacepos $strlenset final ""for {set i 0} {$i &lt;= $strlen} {incr i} {putlog "$curpos | $final | $lspacepos | $i | $lstartpos | $strlen"if {$i==$strlen} {lappend final [string trim [string range $string $lstartpos end]]return $final}if {$curpos &gt;= $strmax} {set curpos 0lappend final [string trim [string range $string $lstartpos $lspacepos]]set lstartpos $lspacepos}if {[string index $string $i] == " "} {set lspacepos $i}incr curpos}return $final}return [list $string]}</code></pre></div>This returns a list containing each line.<br><br>E.G.<br><div class="codebox"><p>Code: </p><pre><code>foreach z [splitstring "my very very very long line of text that will go on forever until I die" 10] {  putserv "PRIVMSG #wherever :$z"}</code></pre></div>the function there will output "{my very very very} {long line of text} {that will go on forever} {until I die}"<br><br>and the loop will output (in #whatever)<div class="codebox"><p>Code: </p><pre><code>&lt;botname&gt; my very very very&lt;botname&gt; long line of text&lt;botname&gt; that will go on forever&lt;botname&gt; until I die</code></pre></div>Hope that helps.<p>Statistics: Posted by Guest — Wed Aug 28, 2002 6:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T17:44:16-04:00</updated>

		<published>2002-08-28T17:44:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10159#p10159</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10159#p10159"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10159#p10159"><![CDATA[
thanx!<p>Statistics: Posted by Guest — Wed Aug 28, 2002 5:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-28T17:05:26-04:00</updated>

		<published>2002-08-28T17:05:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10146#p10146</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10146#p10146"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10146#p10146"><![CDATA[
somthing like<br><div class="codebox"><p>Code: </p><pre><code>proc ml_privmsg {to text} {  while {$text != ""} {    puthelp "PRIVMSG $to :[string range $text 0 50]"    set text [string range $text 51 end]  }}</code></pre></div>use the command as:<div class="codebox"><p>Code: </p><pre><code>ml_privmsg "destination" "very very very long line of text"</code></pre></div>Note, this can break a word in 2 (placing different portions on different lines).<br><br>There are a few changes that could be made, but I can't be bothered.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Aug 28, 2002 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T15:25:22-04:00</updated>

		<published>2002-08-28T15:25:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10142#p10142</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10142#p10142"/>
		<title type="html"><![CDATA[seeking an example of small string proc...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10142#p10142"><![CDATA[
does anyone have an example of procedure that cuts one long string into short ones ?<br>but it should not cut words.<br>actually i need it because ircd cuts long strings that my eggy tries to msg to chan...<p>Statistics: Posted by Guest — Wed Aug 28, 2002 3:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
