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

	<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-09-07T20:36:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-07T20:36:52-04:00</updated>

		<published>2002-09-07T20:36:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10635#p10635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10635#p10635"/>
		<title type="html"><![CDATA[Beginner Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10635#p10635"><![CDATA[
Your Tcl version is too old to run that script. You need at least Tcl 8.3 to have the -all option to regexp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Sep 07, 2002 8:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-07T15:50:26-04:00</updated>

		<published>2002-09-07T15:50:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10632#p10632</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10632#p10632"/>
		<title type="html"><![CDATA[Beginner Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10632#p10632"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc handle_lamer {nick keyword text} {    set text [join $text]    global lamers flood_time capsp screamp numcolor    set nick [split $nick !]    set nick [lindex $nick 0]    set text [split $text]    set chan [lindex $text 0]    if {![validchan $chan]} { return 0 }    if {([isop $nick $chan])||([isvoice $nick $chan])||([nick2hand $nick]!="*")} { return 0 }    set text [lrange $text 1 end]    set n [md5 $nick]    set screams [regexp -all -- {[!,?]} $text]    set caps [regexp -all -- {[A-Z,Å,Ä,Ö]} $text]     set colors [regexp -all -- "\003" $text]    incr colors [regexp -all -- "\026" $text]    incr colors [regexp -all -- "\033" $text]    set strlen [string length $text]    set retval 0    if {![info exists lamers($n!wt)]} {set lamers($n!wt) [md5 $text]set lamers($n!w2) 1utimer $flood_time "del_floodvars $n"if {($colors&gt;$numcolor)||(([expr $caps/$strlen.0]&gt;$capsp)||([expr $screams/$strlen.0]&gt;$screamp)&amp;&amp;($strlen&gt;3))} {    set lamers($n!w3) 1    putserv "NOTICE $nick :No se permiten colores, mayusculas ni cantidades innecesarias de signos" -next} else {    set lamers($n!w3) 0}    } else {        if {[utimerexists "del_floodvars $n"]==""} { utimer $flood_time "del_floodvars $n" }if {$lamers($n!wt)==[md5 $text]} {    set lc $lamers($n!w2)    incr lc    set lamers($n!w2) $lc    if {$lc==2} {putserv "NOTICE $nick :No repitas" -next    } elseif {$lc==3} {putserv "KICK $chan $nick :No repitas" -nextset retval 1    } elseif {$lc&gt;3} {                set host [string tolower [lindex [split [getchanhost $nick $chan] @] 1]]newchanban $chan *!*@$host  "Sentinel" "No repitas" $flood_timeputserv "KICK $chan $nick :No repitas" -nextputserv "MODE $chan +b *!*@$host" -nextset retval 1    }} else {    set lamers($n!wt) [md5 $text]    set lamers($n!w2) 1}if {($colors&gt;$numcolor)||(([expr $caps/$strlen.0]&gt;$capsp)||([expr $screams/$strlen.0]&gt;$screamp)&amp;&amp;($strlen&gt;3))} {            set lc $lamers($n!w3)            incr lc            set lamers($n!w3) $lc            if {$lc==2} {                putserv "KICK $chan $nick :No se permiten colores, mayusculas ni cantidades innecesarias de signos" -nextset retval 1            } elseif {$lc&gt;2} {                set host [string tolower [lindex [split [getchanhost $nick $chan] @] 1]]newchanban $chan *!*@$host  "Sentinel" "No se permiten colores, mayusculas ni cantidades innecesarias de signos" $flood_time                putserv "KICK $chan $nick :No se permiten colores, mayusculas ni cantidades innecesarias de signos" -next                putserv "MODE $chan +b *!*@$host" -nextset retval 1    }}    }    return $retval}</code></pre></div><p>Statistics: Posted by Guest — Sat Sep 07, 2002 3:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-09-07T15:47:13-04:00</updated>

		<published>2002-09-07T15:47:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10631#p10631</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10631#p10631"/>
		<title type="html"><![CDATA[Beginner Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10631#p10631"><![CDATA[
could u paste the "handle_lamer" proc please <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> can't be bothered to download it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Sep 07, 2002 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-07T15:43:16-04:00</updated>

		<published>2002-09-07T15:43:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10630#p10630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10630#p10630"/>
		<title type="html"><![CDATA[Beginner Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10630#p10630"><![CDATA[
<blockquote class="uncited"><div>do u get a errormsg ?</div></blockquote>Yes: <br>Tcl error [handle_lamer]: error while matching regular expression: invalid argument to regex function<br><br>It seems unrelated to my changes in the script. Because I receive this error at any time, not when the script is running in the lines where I did the changes.<p>Statistics: Posted by Guest — Sat Sep 07, 2002 3:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-09-07T15:34:13-04:00</updated>

		<published>2002-09-07T15:34:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10629#p10629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10629#p10629"/>
		<title type="html"><![CDATA[Beginner Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10629#p10629"><![CDATA[
do u get a errormsg ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Sep 07, 2002 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-07T15:25:20-04:00</updated>

		<published>2002-09-07T15:25:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10628#p10628</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10628#p10628"/>
		<title type="html"><![CDATA[Beginner Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10628#p10628"><![CDATA[
Hi. I don't know a word about TCL.<br>I downloaded lammer.tcl from this site.<br>But the script is buggy when need to ban someone without ident enabled, because the ban missed the ´~´ so the ban is useless.<br>The code of the script is:<div class="codebox"><p>Code: </p><pre><code>newchanban $chan [maskhost [getchanhost $nick $chan]] "Sentinel" "Repeating is not allowed"putserv "KICK $chan $nick :Repeating is not allowed" -nextputserv "MODE $chan +b [maskhost [getchanhost $nick $chan]]" -next </code></pre></div>I was reading the tcl docs that come with eggdrop, and some others script, to try to change the way of ban.<br><br>I rewrote that part:<br><div class="codebox"><p>Code: </p><pre><code>                set host [string tolower [lindex [split [getchanhost $nick $chan] @] 1]]newchanban $chan *!*@$host  "Sentinel" "No repitas" $flood_timeputserv "KICK $chan $nick :No repitas" -nextputserv "MODE $chan +b *!*@$host" -next</code></pre></div>But now the script doesn't work.<br>I'm unclear what the problem is.<br>Someone can see a problem in that ?<br><br>Thanks a lot.<p>Statistics: Posted by Guest — Sat Sep 07, 2002 3:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
