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

	<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>2004-05-16T15:12:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-16T15:12:51-04:00</updated>

		<published>2004-05-16T15:12:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36387#p36387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36387#p36387"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36387#p36387"><![CDATA[
Hi,<br><br>I'm no genius with regexp, but try this:<br><br>if {[regexp {^(\[0-9.\])+$} [set parsed [lindex [split $host @] 1]]]} <br><br>Hope that fixes it. <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=3646">Alchera</a> — Sun May 16, 2004 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blood_x]]></name></author>
		<updated>2004-05-11T18:30:22-04:00</updated>

		<published>2004-05-11T18:30:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36286#p36286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36286#p36286"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36286#p36286"><![CDATA[
WooOOops! Still no answer.. on how to fixed it up  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=402">blood_x</a> — Tue May 11, 2004 6:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-10T17:18:27-04:00</updated>

		<published>2004-05-10T17:18:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36264#p36264</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36264#p36264"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36264#p36264"><![CDATA[
Woops? lol <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=3646">Alchera</a> — Mon May 10, 2004 5:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blood_x]]></name></author>
		<updated>2004-05-10T16:57:16-04:00</updated>

		<published>2004-05-10T16:57:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36262#p36262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36262#p36262"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36262#p36262"><![CDATA[
Opss, but it is some variables (as in the script)<br><br>set botnicky [string tolower $botnick]<br><br>Still typo faulty?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=402">blood_x</a> — Mon May 10, 2004 4:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-10T16:27:09-04:00</updated>

		<published>2004-05-10T16:27:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36261#p36261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36261#p36261"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36261#p36261"><![CDATA[
<blockquote class="uncited"><div>#check if the bot is actually typing the word himself, if so - return.. <br>if {[string tolower $nick] == $botnicky} {return 0}</div></blockquote>Noticed a typo in check_pubm, "$botnicky".  Change to "$botnick".<br><br>(A little off the track)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon May 10, 2004 4:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blood_x]]></name></author>
		<updated>2004-05-10T14:08:46-04:00</updated>

		<published>2004-05-10T14:08:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36256#p36256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36256#p36256"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36256#p36256"><![CDATA[
I found one match for "regexp" as below;<br><br>6 {<br>        if {[regexp ^(\[0-9.\])+$ [set parsed [lindex [split $host @] 1]]]} {<br>           set parsed *!*[lindex [split $host @] 0]@[join [lrange [split $parsed .] 0 1] .].*<br>        } elseif {[string match -nocase *.users.undernet.org* $host]} {<br>           set parsed *!*@[lindex [split $host @] 1]<br>        } else {<br>           set first  [split $host @]<br>           set second [split [lindex $first 1] .]<br>           set parsed *!*[lindex $first 0]@*.[lindex $second end-1].[lindex $second end]<br>        }<br>      }<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=402">blood_x</a> — Mon May 10, 2004 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-05-10T11:00:46-04:00</updated>

		<published>2004-05-10T11:00:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36250#p36250</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36250#p36250"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36250#p36250"><![CDATA[
Pasting the regexp would help...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Mon May 10, 2004 11:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blood_x]]></name></author>
		<updated>2004-05-10T09:25:23-04:00</updated>

		<published>2004-05-10T09:25:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36246#p36246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36246#p36246"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36246#p36246"><![CDATA[
Opss, I'm so sorry for it, ppslim. Argh, mistake done! WooPs, I've changed the topic k  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> . After review one by one TCL scripts that I have loaded, I found that "<a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=770" class="postlink">Chanpro2.2.tcl</a>" make the regexp error as stated before.<br><br>Here is check_pubm proc;<br><br>proc check_pubm {nick host hand chan text} {<br> <br> #load some global variables<br> global chanpro botnick<br> <br> #set some variables<br> set botnicky [string tolower $botnick]<br> set chan [string tolower $chan]<br> set enabled [lsearch -exact $chanpro(chans) $chan]<br> set host [string tolower $host]<br> <br> #check if the chan enabled, else return..<br> if {!$chanpro(all) &amp;&amp; $enabled == -1} {return 0}<br> <br> #check if the bot is OPed, else return..<br> if {![botisop $chan]} {return 0}<br> <br> #check if the bot is actually typing the word himself, if so - return..<br> if {[string tolower $nick] == $botnicky} {return 0}<br><br> #check if other bot is actually typing the word &lt;- Added to fix bugs<br> if {[matchattr $hand +b]} {return 0}<br><br> #check the text for colors, bold, underline and CAPS<br> if {[string match *\003* $text]} {check_color $nick $host $hand $chan $text} \<br> elseif {[string match *\002* $text]} {check_bold $nick $host $hand $chan $text} \<br> elseif {[string match *\037* $text]} {check_underline $nick $host $hand $chan $text} \<br> else {check_caps $nick $host $hand $chan $text}<br> <br>} ;#end proc<br><br>And how to fix it up?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=402">blood_x</a> — Mon May 10, 2004 9:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2004-05-10T05:29:14-04:00</updated>

		<published>2004-05-10T05:29:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36243#p36243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36243#p36243"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36243#p36243"><![CDATA[
It's not my script causing that.<br><br>My scripts consists of only two regular expressions, both of which are all 100% valid.<br><br>Beyond that, there is no procedure called check_pubm. Which sugests another script you have loaded.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon May 10, 2004 5:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blood_x]]></name></author>
		<updated>2004-05-10T09:30:30-04:00</updated>

		<published>2004-05-09T13:12:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36232#p36232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36232#p36232"/>
		<title type="html"><![CDATA[Chanpro2.2.tcl Regexp Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36232#p36232"><![CDATA[
Hi there,<br><br>I'm using no.spam1.7.2.tcl for my eggdrop. But sometime msg as below appears;<br><br><strong class="text-strong">Tcl error [check_pubm]: couldn't compile regular expression pattern: brackets [] not balanced</strong><br><br>How to fix it up?<br><br>Thanks.<br><br>p/s: No.spam1.7.2 written by ppslim can be found <a href="http://forum.egghelp.org/viewtopic.php?t=6547&amp;highlight=spam" class="postlink">here</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=402">blood_x</a> — Sun May 09, 2004 1:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
