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

	<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>2006-04-21T04:07:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-04-21T04:07:45-04:00</updated>

		<published>2006-04-21T04:07:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62163#p62163</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62163#p62163"/>
		<title type="html"><![CDATA[how many instances of $word in $line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62163#p62163"><![CDATA[
for proper splitting see <a href="http://forum.egghelp.org/viewtopic.php?p=58248#58248" class="postlink">this</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Apr 21, 2006 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Garp]]></name></author>
		<updated>2006-04-21T03:52:43-04:00</updated>

		<published>2006-04-21T03:52:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62162#p62162</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62162#p62162"/>
		<title type="html"><![CDATA[how many instances of $word in $line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62162#p62162"><![CDATA[
This script should catch people who post lines like <div class="codebox"><p>Code: </p><pre><code>&lt;nick&gt; Who is from location location location location location location location</code></pre></div>But it's pretty complicated. Is there an easier way to catch annoying repeatings in one line?<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "#channel *" dududuproc dududu {nick uhost hand chan sentence} {array set wordcount {}if {([llength $sentence] &lt; 5)||([llength $sentence] &gt; 25)} {return 0}foreach e [split $sentence] {if {[llength [split $e ""]] &lt; 4} {return 0};#ignore 'ha ha ha ha ha' etc   if {![info exists wordcount($e)]} {        set wordcount($e) 1      } elseif {[info exists wordcount($e)]} {        incr wordcount($e)}}set output ""  foreach {x y} [array get wordcount] {    if {[string is integer -s $y]} {      lappend score [list $x $y]    }  }  set {e} [lsort -decreasing -integer -index 1 $score]    if { [lindex [lindex $e 0] 1] &gt; 5 } {      putlog "[lindex [lindex $e 0] 0] used [lindex [lindex $e 0] 1] times";#kick or ban goes here    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3849">Garp</a> — Fri Apr 21, 2006 3:52 am</p><hr />
]]></content>
	</entry>
	</feed>
