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

	<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>2002-04-25T04:38:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-25T04:38:00-04:00</updated>

		<published>2002-04-25T04:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6432#p6432</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6432#p6432"/>
		<title type="html"><![CDATA[Request!!!!!!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6432#p6432"><![CDATA[
Hi, i need help, any kind person?<br>here is a deal, took me few hours to figure out how do i set a date in a kick message, like Z was kicked by eggdrop(Apr 25 AW:ta ta), its worked fine, but if i kickban someone like .kb Z ta ta, its shows ok like Z was kicked by eggdrop(Apr 25 AW: ta ta), and if i do .bans, ban is there.<br>if someone unban the Z, since ban is still active, bot will kickban again, like Z was kicked by eggdrop(banned: ta ta), now my nick n date is not showing in a kick msg.<br>i will apprecite for the help, here r codes..<br><br>proc ban_command {nick host handle channel args1 flag} {<br>global bannick<br>if {[test_real $nick]} {<br>return 0<br>}<br>set args [split $args1 " "]<br>set bnick [lindex $args 0]<br>set knick $bnick<br>set btime "90"<br><br>if {[matchattr $handle m] || [matchattr $handle n]} {set btime "180"}<br><br>  set reason [lrange $args 1 end]<br>if {$reason==""} {<br>puthelp "NOTICE $nick :Ban will not be set without a reason, provide a reason for banning $bnick!"<br>return 0<br>}<br><br>if {[string match "*@*" $bnick]==0} {<br>putserv "WHOIS $bnick"<br>set reason [lrange $args 1 end]<br>lappend bannick [list [string tolower $bnick] $handle $reason $btime $flag $channel $knick $nick 1]<br>return 1<br>}<br> <br>if {$bnick==""} { <br>puthelp "NOTICE $nick :Usage: .b &lt;nick|host&gt; &lt;reason&gt;" <br>return 0<br>}<br><br>set badd [getchanhost $bnick $channel]<br>if {$badd!={}} {<br>set bhnick [maskhost $badd]<br>set bnick "*!*"<br>append bnick [string range $bhnick 2 end]<br>}<br>      set date [clock format [clock seconds] -format "%b %d"] <br>if {[onchan $knick $channel]} { <br>putserv "MODE $channel +b $bnick"<br>putserv "KICK $channel $knick :$date $nick: $reason" <br>}<br>if {$flag} {<br>    newchanban $channel $bnick <br>$handle $reason $btime<br>} else {<br>    newban $bnick $handle $reason 0<br>}    <br>return 1<br>}<br><br>thanks<br><br><p>Statistics: Posted by Guest — Thu Apr 25, 2002 4:38 am</p><hr />
]]></content>
	</entry>
	</feed>
