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

	<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-02-14T12:36:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bofh]]></name></author>
		<updated>2005-02-14T12:36:56-04:00</updated>

		<published>2005-02-14T12:36:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46610#p46610</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46610#p46610"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46610#p46610"><![CDATA[
<blockquote class="uncited"><div>Maybe if you read 'The Manual' ? you would find all the help you need.<br><br>Try this<br><div class="codebox"><p>Code: </p><pre><code>proc subst {text} {    regsub -all -- \\\\ $text \\\\\\\\ text    regsub -all -- \\\[ $text \\\\\[ text    regsub -all -- \\\] $text \\\\\] text    regsub -all -- \\\} $text \\\\\} text    regsub -all -- \\\{ $text \\\\\{ text    regsub -all -- \\" $text \\\\" text    return $text}</code></pre></div></div></blockquote>Thx<br><br>(I played with this few days ago but this made some problems, I will try once again..  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool">  )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5987">bofh</a> — Mon Feb 14, 2005 12:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bofh]]></name></author>
		<updated>2005-02-14T12:31:56-04:00</updated>

		<published>2005-02-14T12:31:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46609#p46609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46609#p46609"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46609#p46609"><![CDATA[
<blockquote class="uncited"><div>For each opening bracket '[' there has to be a matching closing bracket ']'.</div></blockquote>I know that, but didn't know how to fix...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5987">bofh</a> — Mon Feb 14, 2005 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-14T12:19:30-04:00</updated>

		<published>2005-02-14T12:19:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46608#p46608</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46608#p46608"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46608#p46608"><![CDATA[
Maybe if you read 'The Manual' ? you would find all the help you need.<br><br>Try this<br><div class="codebox"><p>Code: </p><pre><code>proc subst {text} {    regsub -all -- \\\\ $text \\\\\\\\ text    regsub -all -- \\\[ $text \\\\\[ text    regsub -all -- \\\] $text \\\\\] text    regsub -all -- \\\} $text \\\\\} text    regsub -all -- \\\{ $text \\\\\{ text    regsub -all -- \\\" $text \\\\\" text    return $text}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon Feb 14, 2005 12:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-02-14T12:09:53-04:00</updated>

		<published>2005-02-14T12:09:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46607#p46607</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46607#p46607"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46607#p46607"><![CDATA[
For each opening bracket '[' there has to be a matching closing bracket ']'.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Feb 14, 2005 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bofh]]></name></author>
		<updated>2005-02-14T11:52:24-04:00</updated>

		<published>2005-02-14T11:52:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46606#p46606</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46606#p46606"/>
		<title type="html"><![CDATA[Re: topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46606#p46606"><![CDATA[
Well i fixed that (using <em class="text-italics">[join [lrange [split $text] 0 end]]</em>  ), but not so well I wanted:<br><br>The problem is with this:<br><br>!topic <strong class="text-strong">{</strong>hello<strong class="text-strong">]</strong><br><br>bot =&gt; Tcl error [pub:topic]: unmatched open brace in list<br><br><br>What to do with this? I have no idea...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5987">bofh</a> — Mon Feb 14, 2005 11:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bofh]]></name></author>
		<updated>2005-02-14T10:58:18-04:00</updated>

		<published>2005-02-14T10:58:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46604#p46604</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46604#p46604"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46604#p46604"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>'<a href="http://tcl.tk/man/tcl8.5/TclCmd/split.htm" class="postlink">split</a>' the text before using list commands (like 'lindex' and 'lrange') on it.</div></blockquote>Miss something bofh? Like the link so you can <em class="text-italics">READ</em> about the use of <a href="http://tcl.tk/man/tcl8.5/TclCmd/split.htm" class="postlink">split</a>?</div></blockquote><br>Oh, I'm sorry, I understood that reply from <strong class="text-strong">user</strong> after I answered to him <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=5987">bofh</a> — Mon Feb 14, 2005 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-02-14T10:19:22-04:00</updated>

		<published>2005-02-14T10:19:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46602#p46602</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46602#p46602"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46602#p46602"><![CDATA[
<blockquote class="uncited"><div>'<a href="http://tcl.tk/man/tcl8.5/TclCmd/split.htm" class="postlink">split</a>' the text before using list commands (like 'lindex' and 'lrange') on it.</div></blockquote>Miss something bofh? Like the link so you can <em class="text-italics">READ</em> about the use of <a href="http://tcl.tk/man/tcl8.5/TclCmd/split.htm" class="postlink">split</a>?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Feb 14, 2005 10:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bofh]]></name></author>
		<updated>2005-02-14T09:37:19-04:00</updated>

		<published>2005-02-14T09:37:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46600#p46600</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46600#p46600"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46600#p46600"><![CDATA[
<blockquote class="uncited"><div>'<a href="http://tcl.tk/man/tcl8.5/TclCmd/split.htm" class="postlink">split</a>' the text before using list commands (like 'lindex' and 'lrange') on it.</div></blockquote>I think you didn't see the whole code I wrote, did you?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"> <br>I'm using lindex and lrange, but doesn't help...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5987">bofh</a> — Mon Feb 14, 2005 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bofh]]></name></author>
		<updated>2005-02-14T09:35:26-04:00</updated>

		<published>2005-02-14T09:35:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46599#p46599</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46599#p46599"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46599#p46599"><![CDATA[
<blockquote class="uncited"><div>addslashes<br><br>\{hello\} \\x01 \\x02 etc put a \ infront of every special character</div></blockquote>Well that's not a solution...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5987">bofh</a> — Mon Feb 14, 2005 9:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-02-14T07:20:34-04:00</updated>

		<published>2005-02-14T07:20:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46594#p46594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46594#p46594"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46594#p46594"><![CDATA[
'<a href="http://tcl.tk/man/tcl8.5/TclCmd/split.htm" class="postlink">split</a>' the text before using list commands (like 'lindex' and 'lrange') on it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Feb 14, 2005 7:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-14T04:16:21-04:00</updated>

		<published>2005-02-14T04:16:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46591#p46591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46591#p46591"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46591#p46591"><![CDATA[
addslashes<br><br>\{hello\} \\x01 \\x02 etc put a \ infront of every special character<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon Feb 14, 2005 4:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bofh]]></name></author>
		<updated>2005-02-14T02:07:04-04:00</updated>

		<published>2005-02-14T02:07:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46590#p46590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46590#p46590"/>
		<title type="html"><![CDATA[topic with special formatted characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46590#p46590"><![CDATA[
Hello<br><br>I have a problem with the topic changing<br><br>I have this in my script:<br><br>bind pub -|- !topic pub:topic<br>bind pub -|- !t pub:topic<br><br>proc pub:topic { nick host handle chan text } {<br> global botnick<br><br> if { [botisop $chan] } {<br>  if { [onchan $nick $chan] &amp;&amp; [matchattr $handle o|C $chan] } {<br>   set arg [lindex $text 0 ]<br>   set newtopic [lrange $text 1 end]<br>    if { $arg != "+" } {<br>     set newtopic [lrange $text 0 end]<br>     if { $newtopic == "" } {<br>      putserv "TOPIC $chan :"<br>     } else {<br>        putserv "TOPIC $chan :[join $newtopic]"<br>       }<br>    } else {<br>       set curtopic [topic $chan]<br>       putserv "TOPIC $chan :$curtopic | [join $newtopic]"<br>      }<br>  } else {<br>     putserv "NOTICE $nick : You haven't permission for this!"<br>    }<br>    flushmode $chan<br> } else {<br>    putserv "NOTICE $nick : I'm not opped on $chan"<br>   }<br>}<br><br>but when I do: !t \x01\x02  it will replace that binary codes with the representing characters, and I don't want that. Also when I do: !t {hello}<br>it will replace it with only hello...<br><br>How can I fix it?<br><br>P.S.:<br>Sorry for my english, and maybe too lame question, but I'm not very skilled at coding at all  <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=5987">bofh</a> — Mon Feb 14, 2005 2:07 am</p><hr />
]]></content>
	</entry>
	</feed>
