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

	<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>2003-04-10T07:41:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-10T07:41:22-04:00</updated>

		<published>2003-04-10T07:41:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18852#p18852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18852#p18852"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18852#p18852"><![CDATA[
ppslim's sugestion seems to be working fine, also the 'regexp'.. thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 10, 2003 7:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-10T07:33:50-04:00</updated>

		<published>2003-04-10T07:33:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18851#p18851</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18851#p18851"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18851#p18851"><![CDATA[
There is no reason for this to happen. You may want to try the following instead of string match.<br><div class="codebox"><p>Code: </p><pre><code>proc ctrl:filter {str} {regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str ; return $str}</code></pre></div>That should be placed outside the proc.<br><br>Then use this instead of "string match"<br><div class="codebox"><p>Code: </p><pre><code>if {[ctrl:filter $text] == $text} { return }</code></pre></div>The above code was taken from No!Spam. It is used to filter out colour and control codes, so you can't insert it into text, to get around the spam filters.<br><br>The idea being. If the filtered text, is exactly the same to non-filtered text, it doesn't contain any characters.<br><br>If it isn't the same it does.<br><br>The filter above also removes a couple of other characters, including the anoying bell sound. They may be of use to you, but you can remove them. While it is a regexp, you can pretty much see the format it takes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 10, 2003 7:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-04-10T07:33:58-04:00</updated>

		<published>2003-04-10T07:32:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18850#p18850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18850#p18850"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18850#p18850"><![CDATA[
use regexp<div class="codebox"><p>Code: </p><pre><code>if {![regexp {\002|\003|\026|\037} $text]} {putserv "PRIVMSG $dest :return" return } putserv "PRIVMSG $dest :continue" } </code></pre></div>I tested this<div class="codebox"><p>Code: </p><pre><code>string match {*[\002]*} $text</code></pre></div> on a bot and it always returns "0" if the text is bold or not, same thing with \003 \026 and \037<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Apr 10, 2003 7:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-10T07:22:45-04:00</updated>

		<published>2003-04-10T07:22:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18848#p18848</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18848#p18848"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18848#p18848"><![CDATA[
Same thing as happend with the bold, happened to colour, underline and reverse. Same continue and same return..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 10, 2003 7:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-10T07:16:00-04:00</updated>

		<published>2003-04-10T07:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18846#p18846</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18846#p18846"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18846#p18846"><![CDATA[
Very very odd - have you tried removignt he \002 and leaving the rest in, to see what happens then?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 10, 2003 7:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-10T07:10:51-04:00</updated>

		<published>2003-04-10T07:10:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18845#p18845</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18845#p18845"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18845#p18845"><![CDATA[
I've tested by removing one by one and finaly I've got to<div class="codebox"><p>Code: </p><pre><code>proc action:colour {nick uhost hand dest keyword text} {if {![string match {*[\002]*} $text]} {putserv "PRIVMSG $dest :return"return } putserv "PRIVMSG $dest :continue"}</code></pre></div>When is something with bold or without it he only says "return". After I've removed the "!" he only says "continue"..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 10, 2003 7:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-10T06:52:05-04:00</updated>

		<published>2003-04-10T06:52:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18844#p18844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18844#p18844"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18844#p18844"><![CDATA[
Try removing one character from the match at a time, and confirm it is not the character codes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 10, 2003 6:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-10T06:33:29-04:00</updated>

		<published>2003-04-10T06:33:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18843#p18843</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18843#p18843"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18843#p18843"><![CDATA[
Thanks for the tip. It still acting weird, like I've just mentioned in my previous post.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 10, 2003 6:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-10T06:28:15-04:00</updated>

		<published>2003-04-10T06:28:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18842#p18842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18842#p18842"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18842#p18842"><![CDATA[
Start using brackets then, sounds like a parsing mistake.<br><br>On top, reduce it to one string match using<br><div class="codebox"><p>Code: </p><pre><code>if {![string match {*[\002\003\026\037]*} $text]} { putlog "return" return 0} putlog "continue"</code></pre></div>The square brackets are a nice feature of string match, that allow a range of characters, and in genral mean "match any of these".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 10, 2003 6:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-10T06:19:13-04:00</updated>

		<published>2003-04-10T06:19:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18841#p18841</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18841#p18841"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18841#p18841"><![CDATA[
Also, something more weird than I've ever seen. Replaced and removed like this:<div class="codebox"><p>Code: </p><pre><code>  if {[string match "*\002*" $text] || [string match "*\003*" $text] || [string match "*\026*" $text] || [string match "*\037*" $text]} {putlog "return"return 1 }putlog "continue"</code></pre></div>When I'm not using colors he "continues" and when I'm using them he *returns*.. Viceversa is not working, duno why.. Using colours he *returns* and when not using them he *returns* also..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 10, 2003 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-10T06:12:22-04:00</updated>

		<published>2003-04-10T06:12:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18840#p18840</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18840#p18840"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18840#p18840"><![CDATA[
I've added and replaced like this:<div class="codebox"><p>Code: </p><pre><code> if {![string match "*\002*" $text] || ![string match "*\003*" $text] || ![string match "*\026*" $text] || ![string match "*\037*" $text]} {putlog "return"return 0 }putlog "continue"</code></pre></div>and eyther I've put return 0 or 1 I've seen only the return line not the continue one as should be, eyther I've userd *colors* or not.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 10, 2003 6:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-10T06:07:26-04:00</updated>

		<published>2003-04-10T06:07:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18839#p18839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18839#p18839"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18839#p18839"><![CDATA[
Have your tried putting any putlog lines in.<br><br>That should allways be the first port of call.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 10, 2003 6:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-10T05:58:54-04:00</updated>

		<published>2003-04-10T05:58:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18837#p18837</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18837#p18837"/>
		<title type="html"><![CDATA[weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18837#p18837"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag colourbind ctcp * ACTION action:colourproc action:colour {nick uhost hand dest keyword text} {  if {$nick == $::botnick || ![channel get $dest colour] || [matchattr $hand of|fo $dest] || [isop $nick $dest]} { return }  if {![string match "*\002*" $text] || ![string match "*\003*" $text] || ![string match "*\026*" $text] || ![string match "*\037*" $text]} { return }  if {[string match "*#*" $text]} {    channel:spam $nick $uhost $hand $chan $text    return  }  if {[string match "*www.*" $text] || [string match "*http*" $text]} {    web:spam $nick $uhost $hand $chan $text    return  }  if {![botisop $dest]} {    set mask "*!*@[lindex [split $uhost @] 1]"    newchanban $dest $mask Colour "\0025\002 minutes ban for using colours within $dest" 5    return  }  set mask "*!*@[lindex [split $uhost @] 1]"  newchanban $dest $mask Colour "\0025\002 minutes ban for using colours within $dest" 5}</code></pre></div>I have the channel +colour and it dosen't seem to be doing nothing. He stops after the no match of bold, colours, reverse and underline, duno why. Any sugestions, tips or something to make it more easier and to be working?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 10, 2003 5:58 am</p><hr />
]]></content>
	</entry>
	</feed>
