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

	<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>2011-03-10T23:17:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cimeran]]></name></author>
		<updated>2011-03-10T23:17:33-04:00</updated>

		<published>2011-03-10T23:17:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96444#p96444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96444#p96444"/>
		<title type="html"><![CDATA[Outputting color codes in a dictionary type script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96444#p96444"><![CDATA[
Thanks for the information. I've solved the problem, but as I get more comfy in tcl I'll try to address the issues you mention. <br><br><br><blockquote class="uncited"><div>There is no substitution done on the entered text, neither is there of the contents of $msg in that line of code you posted. Thus, \002 will be printed literally, and not the control-codes you expected.<br>You could use the "subst" command to force another iteration of substitutions, though you'll have to be careful to not introduce remote exploits (make sure you use -nocommands -novariables for starters).<br><br>Also, this script has a few issues with mixed lists and strings, though I don't think these will affect the use of "subst".</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11589">cimeran</a> — Thu Mar 10, 2011 11:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-03-10T18:13:44-04:00</updated>

		<published>2011-03-10T18:13:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96442#p96442</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96442#p96442"/>
		<title type="html"><![CDATA[Outputting color codes in a dictionary type script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96442#p96442"><![CDATA[
There is no substitution done on the entered text, neither is there of the contents of $msg in that line of code you posted. Thus, \002 will be printed literally, and not the control-codes you expected.<br>You could use the "subst" command to force another iteration of substitutions, though you'll have to be careful to not introduce remote exploits (make sure you use -nocommands -novariables for starters).<br><br>Also, this script has a few issues with mixed lists and strings, though I don't think these will affect the use of "subst".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Mar 10, 2011 6:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cimeran]]></name></author>
		<updated>2011-03-10T17:50:45-04:00</updated>

		<published>2011-03-10T17:50:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96441#p96441</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96441#p96441"/>
		<title type="html"><![CDATA[Outputting color codes in a dictionary type script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96441#p96441"><![CDATA[
<strong class="text-strong">Please note:</strong> <em class="text-italics">I fixed this error by stripping curly braces from the definitions before they were output by the bot....</em><br><br>Howdy all. I'm using this <a href="http://www.egghelp.org/tclhtml/3478-4-0-0-1-eggdb.htm" class="postlink">http://www.egghelp.org/tclhtml/3478-4-0-0-1-eggdb.htm</a> script to do simple getting/setting of messages. Trying like the dickens to set a message to use some color like so:<br><br>!learn test One word is \002bold\002 and \00312some are in\003 color.<br><br>But when it gets echoed back it literally prints the backslashes and numbers rather than formatting the message. The script speaks thusly:<br><br>putserv "privmsg $target :$msg"<br><br>So it seems like it should end up bolded, in color, whatever. Any ideas?<br><br>Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11589">cimeran</a> — Thu Mar 10, 2011 5:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
