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

	<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>2014-08-16T14:05:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-08-16T14:05:16-04:00</updated>

		<published>2014-08-16T14:05:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103143#p103143</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103143#p103143"/>
		<title type="html"><![CDATA[Count ban time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103143#p103143"><![CDATA[
you could alternatively have the bot match the raw numeric for bans, to match when they were really set on channel.<br><br>For example, /mode #channel1 b<br><br>This would return a list of banmasks, in the order they were banned (latest at the top, with older bans below). You could match the (time it was set) and either keep the ( ) in output, or parse them off.<br><br>It's an idea, but personally, the code that nml375 posted is perfect and would only require minimal tweaking to work on a raw bind.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sat Aug 16, 2014 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2014-06-14T19:13:48-04:00</updated>

		<published>2014-06-14T19:13:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102903#p102903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102903#p102903"/>
		<title type="html"><![CDATA[Count ban time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102903#p102903"><![CDATA[
The script checks the banlist in the channel, not the bot's internal banlist. If a ban is already present when the bot joins the channel, it will use it's own time of joining the channel as the ban creation time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jun 14, 2014 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2014-06-14T19:02:36-04:00</updated>

		<published>2014-06-14T19:02:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102902#p102902</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102902#p102902"/>
		<title type="html"><![CDATA[Count ban time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102902#p102902"><![CDATA[
Hi, thanks for the script!<br><br>It seems to be working pretty good, one thing though, it doesn't calculate the bans' time correctly.. I mean, it doesn't look at the banlist and check when the ban was aded right? because when I restarted the bot, 30 mins later when announcing the bans it said all the bans were added 30 mins ago and that wasn't the case<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sat Jun 14, 2014 7:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2014-06-14T15:12:56-04:00</updated>

		<published>2014-06-14T15:12:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102901#p102901</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102901#p102901"/>
		<title type="html"><![CDATA[Count ban time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102901#p102901"><![CDATA[
Something like this should do the trick... Code is untested though.<br><div class="codebox"><p>Code: </p><pre><code>namespace eval BanReport {  variable SourceChannel "#channel1"  variable DestinationChannel "#channel2"  proc reportBans {minute hour day month weekday} {    variable SourceChannel    variable DestinationChannel    foreach ban [chanbans $SourceChannel] {      puthelp "PRIVMSG $DestinationChannel :[lindex $ban 0] is still banned in ${SourceChannel}, the ban was set [expr [lindex $ban 2] / 60] minutes ago by [lindex $ban 1]"    }  }  bind cron - "*/30" [namespace code reportBans]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jun 14, 2014 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2014-06-14T12:42:15-04:00</updated>

		<published>2014-06-14T12:42:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102900#p102900</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102900#p102900"/>
		<title type="html"><![CDATA[Count ban time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102900#p102900"><![CDATA[
Hi,<br><br>Looking for a script that will log channel (#channel1) bans as in: when they were set, by who, what is the ban and announce in #channel2 every 30 mins how long its been since those bans added.<br><br>ie:<br><br>#channel1:<br><br>[14:03] * johnny sets mode: +b *!*@sphex.users.quakenet.org<br>[14:15] * johnny sets mode: +b *!*@tony.users.quakenet.org<br><br>[17:33] * johnny sets mode: -b *!*@tony.users.quakenet.org<br><br>#channel2:<br><br>[14:33] &lt;Bot&gt; *!*@sphex.users.quakenet.org is still banned in #channel1, the ban was set 30 minutes ago by johnny<br>[14:45] &lt;Bot&gt; *!*@tony.users.quakenet.org is still banned in #channel1, the ban was set 30 minutes ago by johnny<br><br><br>[18:03] &lt;Bot&gt; *!*@sphex.users.quakenet.org is still banned in #channel1, the ban was set 240 minutes ago by johnny<br><br>This applies only to bans that are still listed as bans in #channel1, not those that have been removed in the meantime<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sat Jun 14, 2014 12:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
