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

	<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-12-24T22:03:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-24T22:03:52-04:00</updated>

		<published>2004-12-24T22:03:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44485#p44485</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44485#p44485"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44485#p44485"><![CDATA[
how do you know who is a known offender? by his/her hostmask's kick count? if so, this will show only hostmasks with kick count greater than 3:<div class="codebox"><p>Code: </p><pre><code>foreach {m k} [array get ::kicks] {   set c [lindex $k 0]; set t [ctime [lindex $k 1]]   if {$c &gt; 3} {putlog "hostmask: $m, kick count: $c, last: $t"}} </code></pre></div>you can clear the hostmask/stats array by simply unsetting it:<div class="codebox"><p>Code: </p><pre><code>unset ::kicks</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Dec 24, 2004 10:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dotslasher]]></name></author>
		<updated>2004-12-24T21:40:11-04:00</updated>

		<published>2004-12-24T21:40:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44482#p44482</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44482#p44482"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44482#p44482"><![CDATA[
it works fine like i said, but how would i make it only putlog the mask of the person that joined and is a known offender in. atm it putlogs every known hostmask.<br><blockquote class="uncited"><div>[21:13:56] [Beholder]: [15:13] hostmask: *!*temIdle@*.hr.cox.net, kick count: 3, last: Fri Dec 24 00:00:15 2004<br>[21:13:58] [Beholder]: [15:13] hostmask: *!*u4162677@213.85.115.*, kick count: 3, last: Fri Dec 24 13:59:10 2004<br>[21:13:58] [Beholder]: [15:13] hostmask: *!*u5569916@*.bellsouth.net, kick count: 1, last: Fri Dec 24 02:18:54 2004<br>[21:13:58] [Beholder]: [15:13] hostmask: *!*u8691832@*.kotinet.com, kick count: 5, last: Thu Dec 23 13:50:26 2004<br>[21:13:58] [Beholder]: [15:13] hostmask: *!*u0738794@*.pc.metropolis-inter.com, kick count: 2, last: Fri Dec 24 11:51:05 2004</div></blockquote>^^it does the above when some1 rejoins and is known by the bot for being kicked before. ---&gt; just the hostmask of the rejoiner would do.<br><br><br>and would there be a way to clear the hostmasks out of the bot's "memory"?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3637">dotslasher</a> — Fri Dec 24, 2004 9:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dotslasher]]></name></author>
		<updated>2004-12-23T07:28:09-04:00</updated>

		<published>2004-12-23T07:28:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44406#p44406</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44406#p44406"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44406#p44406"><![CDATA[
tnx for the help it worked like a charm <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code> -Beholder@#UT- @ fartghffghd (*!*aloha@*.kabel.telenet.be) rejoined #darth kick count: 1, lastkicked: Thu Dec 23 06:23:39 2004, Last Nick was: fart</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3637">dotslasher</a> — Thu Dec 23, 2004 7:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-22T18:33:18-04:00</updated>

		<published>2004-12-22T18:33:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44392#p44392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44392#p44392"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44392#p44392"><![CDATA[
I'm not sure if [getchanhost] will work on a kicked nick inside [bind kick] proc (it should, but if not, you need to [bind mode] for "+b"), but anyway, here's the stats collecting part:<div class="codebox"><p>Code: </p><pre><code>bind kick - * fooproc foo {n u h c t r} {  set m [maskhost $t![getchanhost $t $c]]  if [info exists ::kicks($m)] {    set c [lindex [set ::kicks($m)] 0]; incr c    set ::kicks($m) "$c [unixtime]"  } else {    set ::kicks($m) "1 [unixtime]"  } }</code></pre></div>...and stats reporting part:<div class="codebox"><p>Code: </p><pre><code>foreach {m k} [array get ::kicks] {  set c [lindex $k 0]; set t [ctime [lindex $k 1]]  putlog "hostmask: $m, kick count: $c, last: $t"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Dec 22, 2004 6:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2004-12-22T14:27:43-04:00</updated>

		<published>2004-12-22T14:27:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44382#p44382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44382#p44382"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44382#p44382"><![CDATA[
im a bit tired, but a small advise... if your script shall count kicks, it strongly recommened to contain a proc bound to "bind kick" ^^. I don't really know what a bind to part is usefull for anyway in this case <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Dec 22, 2004 2:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dotslasher]]></name></author>
		<updated>2004-12-22T12:51:16-04:00</updated>

		<published>2004-12-22T12:51:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44381#p44381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44381#p44381"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44381#p44381"><![CDATA[
i never said anything about nickbans, it should just check the nick (---&gt; look at its host) and it has to return if the person was already kicked/banned before and how many times, and if possible the time/date he got kicked last time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3637">dotslasher</a> — Wed Dec 22, 2004 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-22T11:15:38-04:00</updated>

		<published>2004-12-22T11:15:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44379#p44379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44379#p44379"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44379#p44379"><![CDATA[
...just to clarify - so they can't return immediately to the channel, evading the nick ban with a new nick<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Dec 22, 2004 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-22T11:12:47-04:00</updated>

		<published>2004-12-22T11:12:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44378#p44378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44378#p44378"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44378#p44378"><![CDATA[
but why would you need to ban troublemakers by nick?<br><br>unless you have large amount of users with the same username@host (webchat?), you should always ban by *!*username@maskedhost, or *!*@host, or *!*@maskedhost (for severe abusers) - and never by nick!*@*<br><br>and even if you have a webchat, it should be possible to configure it to generate unique usernames (most webchats encode user's IP as hex in the username)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Dec 22, 2004 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dotslasher]]></name></author>
		<updated>2004-12-22T07:39:35-04:00</updated>

		<published>2004-12-22T07:39:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44366#p44366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44366#p44366"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44366#p44366"><![CDATA[
sorry about the link i cleaned up my website and moved all the stuff i didnt use to /old, link works now.<br><br>and in reply to demond:<br><br>its to keep track of the people who are known troublemakers, that way the channel staff knows if the person that joined is a problem case and that they should watch him closely or not.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3637">dotslasher</a> — Wed Dec 22, 2004 7:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-12-21T23:24:51-04:00</updated>

		<published>2004-12-21T23:24:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44350#p44350</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44350#p44350"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44350#p44350"><![CDATA[
<blockquote class="uncited"><div><strong class="text-strong">Not Found</strong><br><br>The requested URL /checkrejoin.tcl was not found on this server.<br>---------------------------------------------------------------------------<br><em class="text-italics">Apache/2.0.48 (Fedora) Server at <a href="http://www.staticbox.com" class="postlink">www.staticbox.com</a> Port 80</em></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Dec 21, 2004 11:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-21T20:54:36-04:00</updated>

		<published>2004-12-21T20:54:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44343#p44343</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44343#p44343"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44343#p44343"><![CDATA[
what's the purpose of this? statistics only?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Dec 21, 2004 8:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dotslasher]]></name></author>
		<updated>2004-12-21T19:30:02-04:00</updated>

		<published>2004-12-21T19:30:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44341#p44341</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44341#p44341"/>
		<title type="html"><![CDATA[on join check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44341#p44341"><![CDATA[
i got a script ---&gt; <a href="http://www.staticbox.com/checkrejoin.tcl" class="postlink">www.staticbox.com/checkrejoin.tcl</a> but i would like it to do the following: keep track of people and their nicks and if they were kicked before (if so how many times)  <br> <br>it has to do the following:  <br> <br>A user joins the channel and gets kicked, he then rejoins under a different nick a few secs/mins later, the bot should wallchops it to the channel with the following "Meyba (~<a href="mailto:u3783436@194.red-217-217-67.user.auna.net">u3783436@194.red-217-217-67.user.auna.net</a>) rejoined #ut 35 seconds ago Old Nick was: Dullahan, was kicked # of times" , kinda what i have now, but it doesnt display if the user was kicked. and i would like a fix for the elapsed time display.<br> <br>i hope i have been clear about this, sorry for my crappy english :p<br> <br>the script can be found <a href="http://www.staticbox.com/checkrejoin.tcl" class="postlink">www.staticbox.com/checkrejoin.tcl</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3637">dotslasher</a> — Tue Dec 21, 2004 7:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
