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

	<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>2019-05-06T18:12:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-05-06T18:12:09-04:00</updated>

		<published>2019-05-06T18:12:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107644#p107644</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107644#p107644"/>
		<title type="html"><![CDATA[count total  score of duplicate characters in nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107644#p107644"><![CDATA[
excellent thanx heartbroken<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 06, 2019 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2019-05-06T16:48:55-04:00</updated>

		<published>2019-05-06T16:48:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107643#p107643</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107643#p107643"/>
		<title type="html"><![CDATA[count total  score of duplicate characters in nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107643#p107643"><![CDATA[
(.)\1+ will do what you want .<br>it matches two and more same chars in string.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Mon May 06, 2019 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-05-06T10:38:25-04:00</updated>

		<published>2019-05-06T10:38:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107641#p107641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107641#p107641"/>
		<title type="html"><![CDATA[count total  score of duplicate characters in nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107641#p107641"><![CDATA[
for example: <br><br>gghhhhkkkkkwwwwww will have total count of 4<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 06, 2019 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-05-05T18:21:38-04:00</updated>

		<published>2019-05-05T18:21:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107640#p107640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107640#p107640"/>
		<title type="html"><![CDATA[count total  score of duplicate characters in nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107640#p107640"><![CDATA[
tnx for the clarfication <br><br>also could it be done that repeat chars more than one of a char counts as 1 so hhhhhhhhh counts as 1 and gg counts as 1 and ggg counts  as 1 and so on<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 05, 2019 6:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2019-05-05T18:00:08-04:00</updated>

		<published>2019-05-05T18:00:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107639#p107639</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107639#p107639"/>
		<title type="html"><![CDATA[count total  score of duplicate characters in nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107639#p107639"><![CDATA[
(.) -&gt; matches any char, with \1 matches 2 same characters. if you want to match 3 same chars -&gt; (.)\1\1 …<br>and regexp's -all option, gives how many matches in given string. &gt;= checking if counted matches equal or bigger than 3 … do the job...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Sun May 05, 2019 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-05-05T17:51:27-04:00</updated>

		<published>2019-05-05T17:51:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107638#p107638</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107638#p107638"/>
		<title type="html"><![CDATA[count total  score of duplicate characters in nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107638#p107638"><![CDATA[
i think i see why it counts repeated chars twice or more like gggg it counts as 2 while its repeats from 1 char and should count as 1<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 05, 2019 5:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-05-05T17:44:01-04:00</updated>

		<published>2019-05-05T17:44:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107637#p107637</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107637#p107637"/>
		<title type="html"><![CDATA[count total  score of duplicate characters in nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107637#p107637"><![CDATA[
thnx for the response heartbroken<br><br>i tried this:<br><div class="codebox"><p>Code: </p><pre><code>bind join - * join:nickcheckbind nick - * nick:nickcheckproc nick:nickcheck {nick uhost hand chan newnick} {    join:nickcheck $newnick $uhost $hand $chan}proc join:nickcheck {nick uhost hand chan} {  global botnick  if {[string tolower $nick] != [string tolower $botnick]} {    if {[botisop $chan]} {    if {[set dup [regexp -all {(.)\1} $nick]] &gt;= 3} {   putkick $chan $nick "counts $dup duplicate characters"     }   }  }}</code></pre></div><br>and with a nick like hhhgggfffdddd it should detect 4 duplicate chars but instead it says it detected 5 not  sure why ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 05, 2019 5:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2019-05-05T17:53:42-04:00</updated>

		<published>2019-05-05T15:46:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107636#p107636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107636#p107636"/>
		<title type="html"><![CDATA[count total  score of duplicate characters in nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107636#p107636"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[set dup [regexp -all {(.)\1} $nick]] &gt;= 3} { putkick $chan $nick "counts $dup duplicate characters" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Sun May 05, 2019 3:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-05-05T14:45:21-04:00</updated>

		<published>2019-05-05T14:45:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107635#p107635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107635#p107635"/>
		<title type="html"><![CDATA[count total  score of duplicate characters in nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107635#p107635"><![CDATA[
could this msl code be translated into  tcl <br><div class="codebox"><p>Code: </p><pre><code> if ($regex($nick,/(.)\1+/g) &gt; 3) {   kick $chan  $nick counts $regex($nick,/(.)\1+/g) duplicate characters  }</code></pre></div>it matches any duplicate char of any kind and counts as one and adds a total and if exceeded 3 matching duplicates it executes kick<br><br><blockquote class="uncited"><div>Join :   aabbccddeeff    ~<a href="mailto:Mibbit@Amigo.Premium.net">Mibbit@Amigo.Premium.net</a> <br>aabbccddeeff  Kicked from  #tcl-test  By  +simo &lt;&gt; ( counts 6 duplicate characters ) </div></blockquote>possibly for nick change as well<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 05, 2019 2:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
