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

	<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>2008-07-29T03:20:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[eXtremer]]></name></author>
		<updated>2008-07-29T03:20:47-04:00</updated>

		<published>2008-07-29T03:20:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84237#p84237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84237#p84237"/>
		<title type="html"><![CDATA[lol.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84237#p84237"><![CDATA[
<blockquote class="uncited"><div> <br>In each occurence of newchanban :<br><br>replace<div class="codebox"><p>Code: </p><pre><code>lappend reason " "</code></pre></div>by<div class="codebox"><p>Code: </p><pre><code>lappend reason "Requested, ([strftime "%H:%M/%d.%m.%Y" [unixtime]]) by $nick"</code></pre></div>  </div></blockquote>thanks a lot, it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9905">eXtremer</a> — Tue Jul 29, 2008 3:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MenzAgitat]]></name></author>
		<updated>2008-07-28T10:39:48-04:00</updated>

		<published>2008-07-28T10:39:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84215#p84215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84215#p84215"/>
		<title type="html"><![CDATA[lol.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84215#p84215"><![CDATA[
 <br>In each occurence of newchanban :<br><br>replace<div class="codebox"><p>Code: </p><pre><code>lappend reason " "</code></pre></div>by<div class="codebox"><p>Code: </p><pre><code>lappend reason "Requested, ([strftime "%H:%M/%d.%m.%Y" [unixtime]]) by $nick"</code></pre></div> <br> <p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7933">MenzAgitat</a> — Mon Jul 28, 2008 10:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eXtremer]]></name></author>
		<updated>2008-07-28T04:47:31-04:00</updated>

		<published>2008-07-28T04:47:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84209#p84209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84209#p84209"/>
		<title type="html"><![CDATA[lol.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84209#p84209"><![CDATA[
<blockquote class="uncited"><div> <div class="codebox"><p>Code: </p><pre><code>strftime "%H:%M/%d.%m.%Y" [unixtime]</code></pre></div></div></blockquote>Hey MenzAgitat thanks, but if you could tell me where to add this line I'll apreciate.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9905">eXtremer</a> — Mon Jul 28, 2008 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MenzAgitat]]></name></author>
		<updated>2008-07-27T20:36:34-04:00</updated>

		<published>2008-07-27T20:36:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84203#p84203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84203#p84203"/>
		<title type="html"><![CDATA[lol.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84203#p84203"><![CDATA[
 <div class="codebox"><p>Code: </p><pre><code>strftime "%H:%M/%d.%m.%Y" [unixtime]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7933">MenzAgitat</a> — Sun Jul 27, 2008 8:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eXtremer]]></name></author>
		<updated>2008-07-22T09:56:20-04:00</updated>

		<published>2008-07-22T09:56:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84114#p84114</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84114#p84114"/>
		<title type="html"><![CDATA[lol.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84114#p84114"><![CDATA[
Hi all.<br>I'm using lol.tcl, please don't tell me to find and ask the Author, I already contacted him once when I had another problem, but he is busy with other things now, he does not offer support anymore.<br><br>When I use the ban command, I want the script to add the local time and date to the reason.<br><br>I already added the "by $nick" in the reason, now I need the date and time.<br><br>Example of what I want:<br><div class="codebox"><p>Code: </p><pre><code>&lt;eXtremer&gt; !ban tester*** Bot sets mode: +b *!*@host.com*** [Banned]: tester*** tester was kicked by Bot (Requested, (16:50/22.08.08) by eXtremer)</code></pre></div>The CODE:<br><div class="codebox"><p>Code: </p><pre><code>### !BAN &lt;nick|mask&gt; [time] [reason]proc pub_lol_ban {nick host hand chan arg} {set arg [charfilter $arg]global lol botnickif {![check $hand $nick $host]} {if {$lol(silent) == 1 || [checksilent $hand]} {return 0}            puthelp "NOTICE $nick :You need to be identified to use this function. Type .identhelp in the partyline for more info. : \002/msg $botnick id &lt;password&gt;\002 or \002/msg $botnick silent &lt;password&gt;\002 to no more receive this warning."return 0}if {[llength $arg] &lt; 1} {puthelp "NOTICE $nick :\002Usage:\002 [string trim $lol(cmdchar)]ban &lt;nick|mask&gt; \[time\] \[reason\]"return 0}set who [lindex $arg 0]if {[strlwr $who] == [strlwr $botnick]} {puthelp "NOTICE $nick :Yeah right, like I'm going to let you ban ME!"return 0}set ti [lindex $arg 1]if {[isnumber $ti]} {set reason [lrange $arg, 2 end]} {set ti ""set reason [lrange $arg, 1 end]}if {$reason == ""} { set reason "Requested," }if {[onchan $who $chan]} {if { $lol(bantype) == 0 } { set ipmask [lindex [split [maskhost $who![getchanhost $who $chan]] "@"] 1]set usermask [lindex [split [getchanhost $who $chan] "@"] 0]set banmask *!*$usermask@$ipmask} else { set banmask [getchanhost $who $chan]           set banmask "*!*[string range $banmask [string first @ $banmask] e]" }} else {  set banmask [lindex $arg 0]if {[string first "!" $banmask] == -1 &amp;&amp; [string first "@" $banmask] == -1} {if {[isnumber [string index $banmask 0]]} { set banmask *!*@$banmask } else { set banmask $banmask*!*@* }}if {[string first "!" $banmask] == -1} { set banmask *!*$banmask }if {[string first "@" $banmask] == -1} { set banmask $banmask*@* }}   if {![botisop $chan]} { return 0 }putserv "MODE $chan +b $banmask"  foreach chanuser [chanlist $chan] {      if {[string match [strlwr $banmask] [strlwr "$chanuser![getchanhost $chanuser $chan]"]] &amp;&amp; $chanuser != $botnick } { if {[nick2hand $chanuser $chan] != "*"} {if {$hand != [nick2hand $chanuser $chan]} {if {[matchattr [nick2hand $chanuser $chan] o|o $chan] &amp;&amp; ![matchattr $hand o|o $chan]} {                              puthelp "NOTICE $nick :Sorry, you must be an operator to ban an operator."return 0}if {([matchattr [nick2hand $chanuser $chan] m|m $chan] || [matchattr [nick2hand $who $chan] b]) &amp;&amp; ![matchattr $hand m|m $chan]} {                              puthelp "NOTICE $nick :Sorry, you must be a master to ban a master or a bot."return 0}}}       putkick $chan $chanuser [join [lappend reason "by $nick"]]}       } switch $ti {""{newchanban $chan $banmask $nick [join [lappend reason ""]]puthelp "NOTICE $nick :New mask added : $banmask"}0{newchanban $chan $banmask $nick [join [lappend reason ""]] $tiputhelp "NOTICE $nick :New mask added permanently : $banmask"}default{newchanban $chan $banmask $nick [join [lappend reason ""]] $tiputhelp "NOTICE $nick :New mask added for $ti minutes : $banmask"}}return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9905">eXtremer</a> — Tue Jul 22, 2008 9:56 am</p><hr />
]]></content>
	</entry>
	</feed>
