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

	<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-05-25T06:57:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-25T06:57:50-04:00</updated>

		<published>2004-05-25T06:57:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36588#p36588</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36588#p36588"/>
		<title type="html"><![CDATA[Math problem with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36588#p36588"><![CDATA[
Interestingly enough, setting a ban of 1 day results in the following:<br><br>[20:49] &lt;Barry&gt; Channel bans for #aussie-aussie: (* = not placed by bot)<br>[20:49] &lt;Barry&gt; [ 1] *!*hutch@* (expires at 20:49)<br>[20:49] &lt;Barry&gt; Alcheri: Test<br>[20:49] &lt;Barry&gt; Created 20:49<br><br>Now I'm assuming that's 20:49 the <em class="text-italics">next</em> day as the ban remained.<br>A ban of 5 days (that shows 4) would be counted 24 hours after the ban is set and would be a total of 5 days all up?<br><br>The way eggdrop handles this has now got my curiosity up. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue May 25, 2004 6:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2004-05-25T05:35:13-04:00</updated>

		<published>2004-05-25T05:35:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36585#p36585</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36585#p36585"/>
		<title type="html"><![CDATA[Math problem with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36585#p36585"><![CDATA[
Well, considering as soon as you place the ban, the countdown starts, it only takes one second to pass before it turns to 4 days, 23 hours, 59 mins and 59 sec.<br><br>Eggdrop shortens it to the days only.<br><br>I will need to check on that in the source though.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue May 25, 2004 5:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-24T15:34:43-04:00</updated>

		<published>2004-05-24T15:34:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36577#p36577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36577#p36577"/>
		<title type="html"><![CDATA[Math problem with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36577#p36577"><![CDATA[
Hi,<blockquote class="uncited"><div>Perhaps eggdrop doesn't count the current day as one of the days... </div></blockquote>Would appear that is the case and it's a minor thing anyway.  I'm just glad it wasn't what I'd written. LOL<br><br>Thanks for the help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon May 24, 2004 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-24T14:08:42-04:00</updated>

		<published>2004-05-24T14:08:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36575#p36575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36575#p36575"/>
		<title type="html"><![CDATA[Math problem with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36575#p36575"><![CDATA[
Perhaps eggdrop doesn't count the current day as one of the days...<br>This would most likely be the case...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon May 24, 2004 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-24T13:48:34-04:00</updated>

		<published>2004-05-24T13:48:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36574#p36574</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36574#p36574"/>
		<title type="html"><![CDATA[Math problem with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36574#p36574"><![CDATA[
Hello again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><blockquote class="uncited"><div>Add a putlog after your expr of the value of expire.... </div></blockquote>Done, and the math seems to be OK.<br><br>In channel: ban *!*stardust@* 5d Test<br><br>Results in DCC:<blockquote class="uncited"><div>[03:37] &lt;Barry&gt; [03:37] &lt;&lt;Alchera@#aussie-aussie&gt;&gt; !Alchera! ban *!*stardust@* 5d Test<br>[03:37] &lt;Barry&gt; [03:37] Day = 5 Hour = 0 Min = 0 Expire = 7200<br>[03:38] &lt;Barry&gt; Channel bans for #aussie-aussie: (* = not placed by bot)<br>[03:38] &lt;Barry&gt; [ 1] *!*stardust@* (expires in 4 days)<br>[03:38] &lt;Barry&gt; Alchera: Test<br>[03:38] &lt;Barry&gt; Created 03:37</div></blockquote>Am I misreading what eggdrop is telling me in DCC?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon May 24, 2004 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-24T03:19:38-04:00</updated>

		<published>2004-05-24T03:19:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36562#p36562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36562#p36562"/>
		<title type="html"><![CDATA[Math problem with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36562#p36562"><![CDATA[
Add a putlog after your expr of the value of expire....<br>Should let you know if the problem is happening there, or somewhere after expire is set...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon May 24, 2004 3:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-05-24T02:12:32-04:00</updated>

		<published>2004-05-24T02:12:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36559#p36559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36559#p36559"/>
		<title type="html"><![CDATA[Math problem with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36559#p36559"><![CDATA[
Hi,<br><br>The following nippet of code is giving me headaches<blockquote class="uncited"><div>    if {![regexp -- {^([0-9]*[dhm])([0-9]*[dhm])?([0-9]*[dhm])?$} $expire]} {<br>      set expire -1<br>      set index 2<br>    } else {<br>      set e $expire<br>      if {![regexp -- {([0-9]*)m} $e -&gt; min]  || ($min == "")}  {set min  0}<br>      if {![regexp -- {([0-9]*)h} $e -&gt; hour] || ($hour == "")} {set hour 0}<br>      if {![regexp -- {([0-9]*)d} $e -&gt; day]  || ($day == "")}  {set day  0}<br>      set expire [expr ($min)+($hour*60)+($day*1440)]<br>      set index 3<br>    }<br>-----<br>newchanban $channel $target_hostmask $nick $reason $expire none</div></blockquote>Typing "ban *!*stardust@* 2d Test" in the channel, for instance, gives me a ban of 1 day and not the 2 days I want and a ban of 5d gives me 4.<br><br>Any help will definitely be appreciated. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon May 24, 2004 2:12 am</p><hr />
]]></content>
	</entry>
	</feed>
