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

	<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-06-10T04:27:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-10T04:27:00-04:00</updated>

		<published>2002-06-10T04:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7832#p7832</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7832#p7832"/>
		<title type="html"><![CDATA[please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7832#p7832"><![CDATA[
Hi again, that work for that pub proc. but i am calling that for my dcc proc as well, so when i try that in my dcc its doesn't work, i have try to set that set reason "$date $nick: $reason" for a dcc proc, but it gives me an error<br>dcc codes are the following<br><br>proc dcc_b_command {handle idx arg} {<br>        set channel [lindex [console $idx] 0]<br>        set nick [hand2nick $handle]<br>        set host [getchanhost $nick]       <br>        return [ban_command $nick $host $handle $channel $arg  1]<br>}<br><br>i will apprecite for the help<br>advance thanks<br>regards<br>aw<p>Statistics: Posted by Guest — Mon Jun 10, 2002 4:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-10T03:16:00-04:00</updated>

		<published>2002-06-10T03:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7830#p7830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7830#p7830"/>
		<title type="html"><![CDATA[please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7830#p7830"><![CDATA[
stdragon: thank you so much, God bless ya<br>regards<br>AW<br><p>Statistics: Posted by Guest — Mon Jun 10, 2002 3:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-06-10T03:01:00-04:00</updated>

		<published>2002-06-10T03:01:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7829#p7829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7829#p7829"/>
		<title type="html"><![CDATA[please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7829#p7829"><![CDATA[
Move your date/nick code near the top, right after the if $reason == ""<br><br>Add this:<br><br>set reason "$date, $nick $reason"<br><br>(or whatever format you want it in)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Jun 10, 2002 3:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-10T02:37:00-04:00</updated>

		<published>2002-06-10T02:37:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7826#p7826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7826#p7826"/>
		<title type="html"><![CDATA[please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7826#p7826"><![CDATA[
stdrgan:thank you so much, but can you please tell which line i should change, i am still confuse..sorry to be a pain.<br><br>advance thanks<br>regards<br>AW<p>Statistics: Posted by Guest — Mon Jun 10, 2002 2:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-06-10T00:59:00-04:00</updated>

		<published>2002-06-10T00:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7825#p7825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7825#p7825"/>
		<title type="html"><![CDATA[please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7825#p7825"><![CDATA[
The problem is you didn't edit the $reason variable, you just added the date/nick to the kick message.<br><br>The solution is to add the date/nick to the $reason variable, before the call to newchanban or whatever.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Jun 10, 2002 12:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-06-09T20:35:00-04:00</updated>

		<published>2002-06-09T20:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7817#p7817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7817#p7817"/>
		<title type="html"><![CDATA[please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7817#p7817"><![CDATA[
Well, the bot still has the ban active, just not in the channel's _real_ banlist. When the user rejoins, it will kick and reban the user until the ban is removed or expires on the bot. It is like this I believe to avoid problems with dynamic bans and full ban lists. In order to make it say the date and such each time, you would need to either A) make the ban sticky (thus the user would STAY banned, and the bot would reset the ban when another bot or user removes it). B) edit the eggdrop source (maybe not?)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Sun Jun 09, 2002 8:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-09T19:58:00-04:00</updated>

		<published>2002-06-09T19:58:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7815#p7815</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7815#p7815"/>
		<title type="html"><![CDATA[please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7815#p7815"><![CDATA[
hi, i will really apprecite if someone can help me, here is the problem, i was trying to add a "handle, and a Date) to the kick message, so user will know who kicked, and date, for example <br>Eggdrop sets mode: +b *!*Russ@*.aol.com <br>Russ was kicked by Eggdrop( June 07 Aw: get out), so it worked fine, but the problem is when i ban someone let say default time is 2 hour, n somehow someone else had unban "Russ" now when Russ will join, bot will kickban him again, cos its in bots banlist, but this time bot kicks like this <br><br>Russ was kicked by Eggdrop(banned:get out)&lt;-- now date n handle is not showing <br><br>i will really really apprecite for ur help, here are the 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>} <br><br>if {$flag} { <br>newchanban $channel $bnick $handle $reason $btime <br>} else { <br>newban $bnick $handle $reason 0 <br>} <br>return 1 <br>} <br><br>advance thanks <br>best regards <br>AW<br><p>Statistics: Posted by Guest — Sun Jun 09, 2002 7:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
