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

	<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>2017-06-29T08:50:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Martial06]]></name></author>
		<updated>2017-06-29T08:50:17-04:00</updated>

		<published>2017-06-29T08:50:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106345#p106345</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106345#p106345"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106345#p106345"><![CDATA[
Good, thank you for ypur response<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12697">Martial06</a> — Thu Jun 29, 2017 8:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-04-25T00:33:18-04:00</updated>

		<published>2017-04-25T00:33:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106195#p106195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106195#p106195"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106195#p106195"><![CDATA[
It's a kick counter, so yeah, it counts how many members have been kicked by any channel operator (including the bot).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Apr 25, 2017 12:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-04-24T13:21:14-04:00</updated>

		<published>2017-04-24T13:21:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106189#p106189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106189#p106189"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106189#p106189"><![CDATA[
<blockquote class="uncited"><div>That's because it's called <em class="text-italics">kickCount</em> so <em class="text-italics">.chanset #Hottub +kickCount</em></div></blockquote>OK It's work. Thanks... Tell me this tcl only count how many kicks users got in channel?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Mon Apr 24, 2017 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-04-24T12:00:07-04:00</updated>

		<published>2017-04-24T12:00:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106188#p106188</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106188#p106188"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106188#p106188"><![CDATA[
That's because it's called <em class="text-italics">kickCount</em> so <em class="text-italics">.chanset #Hottub +kickCount</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 24, 2017 12:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-04-24T10:16:34-04:00</updated>

		<published>2017-04-24T10:16:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106187#p106187</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106187#p106187"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106187#p106187"><![CDATA[
&lt;Fahad&gt; .chanset #Hottub +kickCounter<br>&lt;Deadite&gt; Error trying to set +kickCounter for #Hottub, invalid mode.<br><br>Not Working for me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Mon Apr 24, 2017 10:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Elfriede]]></name></author>
		<updated>2015-03-13T13:51:37-04:00</updated>

		<published>2015-03-13T13:51:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103576#p103576</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103576#p103576"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103576#p103576"><![CDATA[
Acutally im using this one:<br><div class="codebox"><p>Code: </p><pre><code>setudef int kicksCountedsetudef flag kickCountbind kick * * kick:countproc kick:count {nick uhost hand chan target reason} {   if {![isbotnick $nick]} return   if {[channel get $chan kickCount]} {      set count [incr [channel get $chan kicksCounted]]      channel set $chan kicksCounted $count   }} </code></pre></div>and in my proc:<div class="codebox"><p>Code: </p><pre><code>set count [channel get $chan kicksCounted]putserv "KICK $chan $who $reason - kick#: $count" </code></pre></div>.chanset #he +kickCount does work - sorry, was my bad<br>.chanset #he kickCount 0 - also working<br><br>but: when i kick, the $count only rises once; since im not interested in counting kicks it doesnt matter, but im afraid ill have the same issue with line counting. Thanks for helping !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9204">Elfriede</a> — Fri Mar 13, 2015 1:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-03-13T13:38:53-04:00</updated>

		<published>2015-03-13T13:38:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103575#p103575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103575#p103575"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103575#p103575"><![CDATA[
Alright, for the debugging sake, could you please copy/paste the code you are using right now that you have problems with?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Mar 13, 2015 1:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Elfriede]]></name></author>
		<updated>2015-03-13T12:36:53-04:00</updated>

		<published>2015-03-13T12:36:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103574#p103574</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103574#p103574"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103574#p103574"><![CDATA[
Im sorry to say, but the code isnt working. Still getting invalid mode.<br><br>I know this is an older post, but would be awesome if somone could fix that.<br>Thats quite a thing im trying to implent.<br><br>.chanset #channel +messagecount<br><br>Then:<br><br>Count the lines from one specific user (instead of kick counting) and reset the stats once a day at 00:00.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9204">Elfriede</a> — Fri Mar 13, 2015 12:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gasak]]></name></author>
		<updated>2012-10-01T00:33:39-04:00</updated>

		<published>2012-10-01T00:33:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100096#p100096</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100096#p100096"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100096#p100096"><![CDATA[
Hi caesar,<br><br>I just follow your code above. Meaning that this code didn't work?<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11310">gasak</a> — Mon Oct 01, 2012 12:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-09-30T15:06:34-04:00</updated>

		<published>2012-09-30T15:06:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100095#p100095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100095#p100095"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100095#p100095"><![CDATA[
The <em class="text-italics">kicksCounter</em> is a integer value, not a custom channel flag, hence the error. If you wish to have a flag to enable/disable this thing on a specific channel then use this:<div class="codebox"><p>Code: </p><pre><code>setudef int kicksCountedsetudef flag kickCountbind kick * * kick:countproc kick:count {nick uhost hand chan target reason} {if {![isbotnick $nick]} returnif {[channel get $chan kickCount]} {set count [incr [channel get $chan kicksCounted]]channel set $chan kicksCounted $count}}</code></pre></div>(notice the change in names of the variables), then in your script add something like:<div class="codebox"><p>Code: </p><pre><code>set count [channel get $chan kicksCounted]putserv "KICK $chan $who $reason - kick#: $count" </code></pre></div>By default <em class="text-italics">kickCounter</em> will be disabled, so it will not count and store in <em class="text-italics">kicksCounted</em> the kicks in any channels, meaning kickCounter will be 0. To enable it on a specific channel just <em class="text-italics">.chanset #channel +kickCounter</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Sep 30, 2012 3:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gasak]]></name></author>
		<updated>2012-09-29T22:06:25-04:00</updated>

		<published>2012-09-29T22:06:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100091#p100091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100091#p100091"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100091#p100091"><![CDATA[
Hi caesar,<br><br>Just test your script but got some problem when setting the channel. When I try to set <em class="text-italics">.chanset #gasak +kicksCounter</em> got a reply:<div class="codebox"><p>Code: </p><pre><code>Error trying to set +kicksCounter for #gasak, invalid mode.</code></pre></div>Please advise. Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11310">gasak</a> — Sat Sep 29, 2012 10:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2012-07-21T17:31:07-04:00</updated>

		<published>2012-07-21T17:31:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99759#p99759</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99759#p99759"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99759#p99759"><![CDATA[
/me likes caesar's way  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>i just did what you asked based on the examples you gave <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> but caesar's way is the better/easier option, also i never had the prob with it not incrementing the kicks in order..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Sat Jul 21, 2012 5:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-07-21T12:11:54-04:00</updated>

		<published>2012-07-21T12:11:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99744#p99744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99744#p99744"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99744#p99744"><![CDATA[
Simple. Just <em class="text-italics">.chanset #channel kicksCounter 0</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Jul 21, 2012 12:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gasak]]></name></author>
		<updated>2012-07-20T09:18:47-04:00</updated>

		<published>2012-07-20T09:18:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99733#p99733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99733#p99733"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99733#p99733"><![CDATA[
caesar,<br><br>how if afterwards i want to reset the kickcounter from 0 again? What would be the command since it doesnt reading writing into disk?<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11310">gasak</a> — Fri Jul 20, 2012 9:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-07-20T00:27:36-04:00</updated>

		<published>2012-07-20T00:27:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99732#p99732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99732#p99732"/>
		<title type="html"><![CDATA[[SOLVED] Kick Counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99732#p99732"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef int kicksCounterproc kicks:Counter {chan} {   set count [incr [channel get $chan kicksCounter]]   channel set $chan kicksCounter $count    return $count}putlog "kicksCounter function v1.0 loaded"</code></pre></div>Here. Now all you have to do is to first enable the kick counter on the channel you wish with <em class="text-italics">.chanset #channel +kicksCounter</em> and instead of:<div class="codebox"><p>Code: </p><pre><code>putserv "KICK $chan $who $reason - kick#: [count:kicks]" </code></pre></div>you would need to pass the channel variable like this:<div class="codebox"><p>Code: </p><pre><code>putserv "KICK $chan $who $reason - kick #[kicks:Counter $chan]" </code></pre></div>and no more reading writing to the disk upon each kick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jul 20, 2012 12:27 am</p><hr />
]]></content>
	</entry>
	</feed>
