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

	<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-11-27T06:15:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-27T06:15:10-04:00</updated>

		<published>2002-11-27T06:15:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13671#p13671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13671#p13671"/>
		<title type="html"><![CDATA[Remove spaces from script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13671#p13671"><![CDATA[
This is a major problem, and drawback of the script.<br><br>There is no simple way of making this detection, without adding code that will slow the bot down even more.<br><br>By taking a string, you can remove the spaces with one of these two<div class="codebox"><p>Code: </p><pre><code>set string [join [split $string] {}]regsub -all -- " " $string "" string</code></pre></div>However, this will prevent some of the better matching strings.<br><br>IE<br>using "*join #*" would no longer be valid, as there is a space in the string, which would never be there.<br><br>There is one possibility, of using new matching code, but this does not exist as of yet.<br><br>The current wildcards, are those of the Tcl "string match" command. These are * and ? (there is a third, which wouldn't work in this situation either, though is perfectly valid for a match, these can be looked at in detail at <a href="http://www.tcl.tk/man/tcl8.3/TclCmd/string.htm#M35" class="postlink">this page</a>).<br><br>Eggdrop provides it's own matching system (uses the * and ?, plus two others % and ~. These are documented at the base of tcl-commands.doc), though this is still not suffiecient for this kind of matching.<br><br>It would need to be a new char, that would have one of the following matching properties<br><blockquote class="uncited"><div>Match 0 or 1 characters of any type.</div></blockquote>This would require that a second match take place, to determine in the matching character is a infact a space.<br><blockquote class="uncited"><div>Match 0 or 1 whitespaces</div></blockquote>This would be the better solution, as it would only require one match.<br><br>Tcl would simply not be fast enough to process such matching, and it would need implimentation is C.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 27, 2002 6:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Illidan]]></name></author>
		<updated>2002-11-27T00:28:23-04:00</updated>

		<published>2002-11-27T00:28:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13667#p13667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13667#p13667"/>
		<title type="html"><![CDATA[Remove spaces from script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13667#p13667"><![CDATA[
I'm using no!spam and recently i see that some users are getting smart to actually making use of spaces to spam which will make the script undetectable. So how should I go about removing those spaces?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2097">Illidan</a> — Wed Nov 27, 2002 12:28 am</p><hr />
]]></content>
	</entry>
	</feed>
