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

	<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>2003-06-10T17:47:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2003-06-10T17:47:51-04:00</updated>

		<published>2003-06-10T17:47:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21614#p21614</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21614#p21614"/>
		<title type="html"><![CDATA[heh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21614#p21614"><![CDATA[
thanks anyways, but i already fixed it after a phew hours <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br>I also added a undo command to unban the last banned user.<br><div class="codebox"><p>Code: </p><pre><code>bind sign - * banquitbind part - * banquitbind mode - * lastban_checkbind pub o|o banlast banlastbind pub o|o undo ban_undoset lastbanned($chan) ""proc lastban_check {nick uhost hand chan mode victim } { global lastbanned  if {[lindex $mode 0] == "+b"} {   set lastbanned($chan) $victim   }  }proc ban_undo {nick uhost hand chan arg} { global lastbanned pushmode $chan -b $lastbanned($chan)  killchanban $chan $lastbanned($chan)}  proc banquit {nick uhost hand chan reason} {   global mask   set mask($chan) "*!*@[lindex [split $uhost @] 1]" }proc banlast {nick uhost hand chan arg} {  global mask  if {![botisop $chan]} { return }  if {[lindex $arg 0] == ""} { set arg "60" }  if {![info exists mask($chan)]} {     puthelp "NOTICE $nick :No user has left the channel"    return  }  newchanban $chan $mask($chan) "\002$arg\002 minutes ban" $arg  pushmode $chan +b $mask($chan) }putlog "lastban.tcl by AsoAron loaded.."</code></pre></div><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=2858">Aron</a> — Tue Jun 10, 2003 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-06-10T12:04:25-04:00</updated>

		<published>2003-06-10T12:04:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21600#p21600</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21600#p21600"/>
		<title type="html"><![CDATA[Banning the user who last left]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21600#p21600"><![CDATA[
a few modifications (so it will work, and work in all channels):<br><div class="codebox"><p>Code: </p><pre><code>bind part - "*" part:msgbind pub o|o !lastban pub:lastban proc part:msg { nick uhost hand chan msg } {  global lastleft  set lastleft(nick) $nick  set lastleft(host) $uhost}proc pub:lastban { nick uhost hand chan text } {  global lastleft  newchanban $chan $lastleft(nick)!$lastleft(host) $nick $text }</code></pre></div>just barely tested it so if anything [censored] up just drop a line<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Tue Jun 10, 2003 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2003-06-08T09:42:14-04:00</updated>

		<published>2003-06-08T09:42:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21457#p21457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21457#p21457"/>
		<title type="html"><![CDATA[Banning the user who last left]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21457#p21457"><![CDATA[
Yeah, i guess you're right. <br><br>Sorry for bumping, it will be the last time it happened.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2858">Aron</a> — Sun Jun 08, 2003 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-06-08T08:59:40-04:00</updated>

		<published>2003-06-08T08:59:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21454#p21454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21454#p21454"/>
		<title type="html"><![CDATA[Banning the user who last left]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21454#p21454"><![CDATA[
Can we ask you not to bump threads.<br><br>On forums where you expect all the help you can get, without contributing yourself, you will find that the more you bump it, the less chance you have of obtaining help.<br><br>People will help you when they are good and ready.<br><br>If you feel I am incorrect in saying this, can I ask you where in the registration document it said we will help you in under 24 hours (your bump threads came in less than that).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Jun 08, 2003 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2003-06-08T06:12:24-04:00</updated>

		<published>2003-06-08T06:12:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21446#p21446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21446#p21446"/>
		<title type="html"><![CDATA[Banning the user who last left]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21446#p21446"><![CDATA[
* bump *<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2858">Aron</a> — Sun Jun 08, 2003 6:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2003-06-07T11:21:33-04:00</updated>

		<published>2003-06-07T11:21:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21408#p21408</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21408#p21408"/>
		<title type="html"><![CDATA[Banning the user who last left]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21408#p21408"><![CDATA[
k, thanks for that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I tried to make something, but im a real tcl noob, so it didnt actually work (although not crashing my bot is a whole prestige for me)<br><br>Here it is..:<br><div class="codebox"><p>Code: </p><pre><code>bind part -|- *!*@* lastban_checkbind pub o|o !lastban lastban_doproc lastban_check {nick uhost hand chan msg } {  set lastleft_nick $nick  set lastleft_host $uhost}proc lastban_do {nick uhost hand chan arg } {  global lastleft_nick lastleft_host  newchanban $chan $lastleft_nick!$lastleft_host $nick $arg}</code></pre></div>It says the variable lastleft_host doesnt exist...<br><br>I know, this script would still suck IF it would work, since it would not have multiple channel support, so if anyone knows a way around this too... *hint* <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2858">Aron</a> — Sat Jun 07, 2003 11:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-06-06T21:52:22-04:00</updated>

		<published>2003-06-06T21:52:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21388#p21388</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21388#p21388"/>
		<title type="html"><![CDATA[Banning the user who last left]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21388#p21388"><![CDATA[
i'd imagine that the "part" bind is perfect for this.<br><br>better have a look at good ol' tcl-commands.doc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Fri Jun 06, 2003 9:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2003-06-06T17:51:55-04:00</updated>

		<published>2003-06-06T17:51:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21384#p21384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21384#p21384"/>
		<title type="html"><![CDATA[Banning the user who last left]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21384#p21384"><![CDATA[
I searched for script that do this, but coulnd find one.<br>The banning part shouldnt be a problem, but i dont have a clue how to check if a user has left.<br>Any help would be greatly 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=2858">Aron</a> — Fri Jun 06, 2003 5:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
