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

	<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-08-16T21:25:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-16T21:25:24-04:00</updated>

		<published>2004-08-16T21:25:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39855#p39855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39855#p39855"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39855#p39855"><![CDATA[
Yeah, but I still will be using a strip filter procedure in all of my coming scripts atleast for the coming 4-5 months, because most people might not update to the latest eggdrop1.6.17 so soon.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br><br>So if my scripts have a scriptcodes function to remove control codes, and most people using that script are running old eggdrop versions, older than 1.6.17 then that function will not be defined, causing the script to choke.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 16, 2004 9:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-08-16T09:46:54-04:00</updated>

		<published>2004-08-16T09:46:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39839#p39839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39839#p39839"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39839#p39839"><![CDATA[
or you can save some trouble and use stripcodes (new in eggdrop1.6.17) ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Mon Aug 16, 2004 9:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-15T23:55:24-04:00</updated>

		<published>2004-08-15T23:55:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39821#p39821</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39821#p39821"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39821#p39821"><![CDATA[
By the way as for this code:<br><blockquote class="uncited"><div>Example for calling:<div class="codebox"><p>Code: </p><pre><code>set msg [ctrl:filter $arg]</code></pre></div>The procedure itself:<div class="codebox"><p>Code: </p><pre><code># ctrl:filter &lt;string&gt; # Strip all control characters. Thanks to ppslim (ppslim@acarr.plus.com).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></div></blockquote><br>'user' in most of his posts mentioned:<br><blockquote class="uncited"><div>#Not the correct way to remove colors<br>proc ctrl:filter {str} { <br>  regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\002|\017|\026|\037|\006|\007} $str "" str<br>  return $str <br><br>#The correct way to remove colors<br>proc ctrl:filter {str} { <br>  regsub -all -- {\003([0-9]{1,2}(,[0-9]{1,2})?)?|\002|\017|\026|\037|\006|\007} $str "" str <br> return $str <br>}</div></blockquote><div class="codebox"><p>Code: </p><pre><code>#WRONGregsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\002|\017|\026|\037|\006|\007} $str "" str #CORRECTregsub -all -- {\003([0-9]{1,2}(,[0-9]{1,2})?)?|\002|\017|\026|\037|\006|\007} $str "" str </code></pre></div>  <br><br>So use the regular substitution as 'user' has mentioned.<br><br>Now I am not a rocketscientist or as good as these guys, but I think maybe user has a point. I don't understand regexp or regsub very well so we will leave this for ppslim (the creator) and user to argue over (both are indeed good scripters). Lets see who wins and who is correct!  <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=4875">awyeah</a> — Sun Aug 15, 2004 11:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-08-15T23:50:45-04:00</updated>

		<published>2004-08-15T23:50:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39820#p39820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39820#p39820"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39820#p39820"><![CDATA[
/me smacks awyeah on the wrist  <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=3646">Alchera</a> — Sun Aug 15, 2004 11:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-15T23:45:12-04:00</updated>

		<published>2004-08-15T23:45:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39817#p39817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39817#p39817"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39817#p39817"><![CDATA[
There is a filter, actually in some procs I forgot to rename it.<br>That's why the named filter in the procs is different to the actual name of the filter giving an error that procedure cannot be found.<br><br>What can I say! A 50kb+ script, somewhere you get an error! isn't it true?<br>Maybe because of being lazy and pasting <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> and also not of thorough testing!<br><br>Anyway I just submitted a new fixed version, with more updates and functions of the 'Anti Part/Quit Message Script'. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>It takes some days to be added onto egghelp.org though. If you need the script in a hurry give me your email and I will send it to you, otherwise wait till it has been updated on egghelp.org's TCL archive in the 'New Scripts' section!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br><br>I will be looking in the future to reduce the size when I get time as well and add a bit more features!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Aug 15, 2004 11:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-08-15T18:14:51-04:00</updated>

		<published>2004-08-15T18:14:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39810#p39810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39810#p39810"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39810#p39810"><![CDATA[
Example for calling:<div class="codebox"><p>Code: </p><pre><code>set msg [ctrl:filter $arg]</code></pre></div>The procedure itself:<div class="codebox"><p>Code: </p><pre><code># ctrl:filter &lt;string&gt; # Strip all control characters. Thanks to ppslim (ppslim@acarr.plus.com).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><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Aug 15, 2004 6:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2004-08-15T13:47:43-04:00</updated>

		<published>2004-08-15T13:47:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39806#p39806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39806#p39806"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39806#p39806"><![CDATA[
hi awyeah,<br><br>nice script, but i think ppl will get the error... because there is no -&gt; ctrl:filter procedure in the code...may be i am missing something..<br><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sun Aug 15, 2004 1:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-15T09:53:15-04:00</updated>

		<published>2004-08-15T09:53:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39803#p39803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39803#p39803"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39803#p39803"><![CDATA[
<blockquote class="uncited"><div>Also set +dynamicbans <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div># dynamicbans<br>#    Only activate bans on the channel when necessary? This keeps<br>#    the channel's ban list from getting excessively long. The bot<br>#    still remembers every ban, but it only activates a ban on the<br>#    channel when it sees someone join who matches that ban.<br>#</div></blockquote></div></blockquote>Yes! it is also good, to set <strong class="text-strong">+dynamicbans</strong>.<br>Bans in the bots banlist will not be always enforced/active on the channel if those bans are unbanned on the channel by an Op.  <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=4875">awyeah</a> — Sun Aug 15, 2004 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-08-15T01:02:41-04:00</updated>

		<published>2004-08-15T01:02:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39793#p39793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39793#p39793"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39793#p39793"><![CDATA[
Also set +dynamicbans <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div># dynamicbans<br>#    Only activate bans on the channel when necessary? This keeps<br>#    the channel's ban list from getting excessively long. The bot<br>#    still remembers every ban, but it only activates a ban on the<br>#    channel when it sees someone join who matches that ban.<br>#</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Aug 15, 2004 1:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-15T00:24:30-04:00</updated>

		<published>2004-08-15T00:24:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39792#p39792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39792#p39792"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39792#p39792"><![CDATA[
Umm, maybe you can replace the 'newchanban' to putserv "MODE $chan +b $banmask" something like this.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br><br>I also made a script similar it binds on part as well as quit you might want to try that '<strong class="text-strong">Anti Part/Quit Message Script</strong>'. You can find it on egghelp.org's TCL archive.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Aug 15, 2004 12:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ahilius]]></name></author>
		<updated>2004-08-14T22:15:55-04:00</updated>

		<published>2004-08-14T22:15:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39790#p39790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39790#p39790"/>
		<title type="html"><![CDATA[quitban.tcl v.1.1 slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39790#p39790"><![CDATA[
In your collection of tcl scripts, you have quitban.tcl script (v1.1).<br><br>I've been using this script for a while on my channel (#Liepaja).<br>Wonderful script!<br><br>Only one but. Script setting ban in bot's banist and in channel banlist.<br><br>(06:30:30)—› quit: (quit_ban_test) (~<a href="mailto:user@proxy2.vita.gov.lv">user@proxy2.vita.gov.lv</a>) (Quit: HnH Script version 5.2 Download<br>from <a href="http://www.RG-soft.com" class="postlink">www.RG-soft.com</a>)<br>(06:30:30)—› mode: (Liepaja) sets (+b *!~<a href="mailto:user@proxy2.vita.gov.lv">user@proxy2.vita.gov.lv</a>)<br><br>Every day I need to clean my channel banlist <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> because it becoming a<br>mess <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>Can script be configured to set ban into bot's banlist only?<br><br><br>Thank you for your answer!<br><br>Sincerly,<br><br>Andry<br>P.S. - sorry for bad english... <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=5322">Ahilius</a> — Sat Aug 14, 2004 10:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
