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

	<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>2008-12-10T11:05:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[vigilant]]></name></author>
		<updated>2008-12-10T11:05:59-04:00</updated>

		<published>2008-12-10T11:05:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86172#p86172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86172#p86172"/>
		<title type="html"><![CDATA[[SOLVED] Replacing/Ignoring bad characters in code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86172#p86172"><![CDATA[
<blockquote class="uncited"><div>That is mentioned in the "Script Security" thread vigilant <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>lolllllllll <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Well great then :O<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7195">vigilant</a> — Wed Dec 10, 2008 11:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-10T09:18:24-04:00</updated>

		<published>2008-12-10T09:18:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86169#p86169</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86169#p86169"/>
		<title type="html"><![CDATA[[SOLVED] Replacing/Ignoring bad characters in code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86169#p86169"><![CDATA[
That is mentioned in the "Script Security" thread vigilant <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=3085">Sir_Fz</a> — Wed Dec 10, 2008 9:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[vigilant]]></name></author>
		<updated>2008-12-09T22:07:01-04:00</updated>

		<published>2008-12-09T22:07:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86162#p86162</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86162#p86162"/>
		<title type="html"><![CDATA[[SOLVED] Replacing/Ignoring bad characters in code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86162#p86162"><![CDATA[
<blockquote class="uncited"><div><a href="http://forum.egghelp.org/viewtopic.php?t=9945" class="postlink">Script Security</a></div></blockquote>I think better than that is, <a href="http://www.peterre.info/characters.html" class="postlink">http://www.peterre.info/characters.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7195">vigilant</a> — Tue Dec 09, 2008 10:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-09T14:35:08-04:00</updated>

		<published>2008-12-09T14:35:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86154#p86154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86154#p86154"/>
		<title type="html"><![CDATA[[SOLVED] Replacing/Ignoring bad characters in code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86154#p86154"><![CDATA[
<a href="http://forum.egghelp.org/viewtopic.php?t=9945" class="postlink">Script Security</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 09, 2008 2:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[vigilant]]></name></author>
		<updated>2008-12-09T13:59:04-04:00</updated>

		<published>2008-12-09T13:59:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86153#p86153</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86153#p86153"/>
		<title type="html"><![CDATA[[SOLVED] Replacing/Ignoring bad characters in code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86153#p86153"><![CDATA[
<blockquote class="uncited"><div>It sounds to me like you are looking for ways to avoid being exploited by nicknames such as [die].<br><br>The proper way of avoiding this is not to do massive regexp's, and other mangling, but rather use proper tcl-scripting, being aware of the command and variable substitutions done by the tcl engine, and when it does this.<br>This, of course, isn't something can can expect from a fresh tcl-coder, but comes from experience. If you post examples of where you are having problems, we could better point you in the right way in those specific issues.<br><br>One "rule of thumb" however, if you need to build a command line to be passed to the tcl interpreter (such as when you use timer/utimer), make it a list, as this will protect the individual items from substitutions during the next parsing.</div></blockquote>Okay.. thanks. I was thinking of list <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Thanks for clarifying.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7195">vigilant</a> — Tue Dec 09, 2008 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-12-09T13:56:51-04:00</updated>

		<published>2008-12-09T13:56:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86152#p86152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86152#p86152"/>
		<title type="html"><![CDATA[[SOLVED] Replacing/Ignoring bad characters in code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86152#p86152"><![CDATA[
It sounds to me like you are looking for ways to avoid being exploited by nicknames such as [die].<br><br>The proper way of avoiding this is not to do massive regexp's, and other mangling, but rather use proper tcl-scripting, being aware of the command and variable substitutions done by the tcl engine, and when it does this.<br>This, of course, isn't something can can expect from a fresh tcl-coder, but comes from experience. If you post examples of where you are having problems, we could better point you in the right way in those specific issues.<br><br>One "rule of thumb" however, if you need to build a command line to be passed to the tcl interpreter (such as when you use timer/utimer), make it a list, as this will protect the individual items from substitutions during the next parsing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Dec 09, 2008 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[vigilant]]></name></author>
		<updated>2008-12-09T11:35:18-04:00</updated>

		<published>2008-12-09T11:35:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86148#p86148</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86148#p86148"/>
		<title type="html"><![CDATA[[SOLVED] Replacing/Ignoring bad characters in code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86148#p86148"><![CDATA[
<blockquote class="uncited"><div>What "bad" characters? Are you sure you want to ignore them? Here's a line that will get rid of alot of characters:<div class="codebox"><p>Code: </p><pre><code>regsub -all \\W+ $string "" string</code></pre></div>...but I'm not sure this is what you really need  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> (your wording makes me think you might be having problems related to treating strings as lists)</div></blockquote>Yes , hello for your prompt reply. I guess so, like first when you receive the nickname argument using a normal bind... and it has characters like, \ / [] and so on. What's the easiest way to capture the nickname including the [ ] , because it's not when it has \ / characters...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7195">vigilant</a> — Tue Dec 09, 2008 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2008-12-09T05:39:37-04:00</updated>

		<published>2008-12-09T05:39:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86146#p86146</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86146#p86146"/>
		<title type="html"><![CDATA[[SOLVED] Replacing/Ignoring bad characters in code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86146#p86146"><![CDATA[
What "bad" characters? Are you sure you want to ignore them? Here's a line that will get rid of alot of characters:<div class="codebox"><p>Code: </p><pre><code>regsub -all \\W+ $string "" string</code></pre></div>...but I'm not sure this is what you really need  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> (your wording makes me think you might be having problems related to treating strings as lists)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 09, 2008 5:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[vigilant]]></name></author>
		<updated>2008-12-09T13:59:37-04:00</updated>

		<published>2008-12-08T21:39:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86140#p86140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86140#p86140"/>
		<title type="html"><![CDATA[[SOLVED] Replacing/Ignoring bad characters in code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86140#p86140"><![CDATA[
How can I accomplish this?<br>Lets say the nickname has a character such as \<br>how can I get rid of it or ignore it? <br><br>please suggest <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=7195">vigilant</a> — Mon Dec 08, 2008 9:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
