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

	<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>2009-10-29T18:28:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-10-29T18:28:42-04:00</updated>

		<published>2009-10-29T18:28:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90675#p90675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90675#p90675"/>
		<title type="html"><![CDATA[!sry to unban and reinvite the last banned user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90675#p90675"><![CDATA[
You didn't install MC_8's More Tools TCL Script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_exclaim.gif" width="15" height="15" alt=":!:" title="Exclamation"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Oct 29, 2009 6:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2009-10-27T16:00:51-04:00</updated>

		<published>2009-10-27T16:00:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90645#p90645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90645#p90645"/>
		<title type="html"><![CDATA[!sry to unban and reinvite the last banned user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90645#p90645"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>&lt;Modo&gt; [19:57] Tcl error [sorry:mode]: invalid command name "findnicks"</code></pre></div>What is the error?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Tue Oct 27, 2009 4:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bro0]]></name></author>
		<updated>2009-07-28T21:38:29-04:00</updated>

		<published>2009-07-28T21:38:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89691#p89691</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89691#p89691"/>
		<title type="html"><![CDATA[!sry to unban and reinvite the last banned user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89691#p89691"><![CDATA[
big thanks, great work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>&lt;3<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10579">bro0</a> — Tue Jul 28, 2009 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-07-26T15:59:09-04:00</updated>

		<published>2009-07-26T15:59:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89667#p89667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89667#p89667"/>
		<title type="html"><![CDATA[!sry to unban and reinvite the last banned user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89667#p89667"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>### SCRIPT##proc sorry:kick {nick host handle channel target reason} { global sorry if {![isbotnick $target]} {  set target-host "$target![getchanhost $target]"  set sorry($channel) "kick,$target,${target-host},[clock seconds],$reason"  set sorry(kick:$channel) "$target,${target-host},[clock seconds],$reason"  putloglev 1 * "sorry.tcl: added kick on $channel for '${target-host}' ($reason)"  return }}proc sorry:mode {nick host handle channel mode target} { global sorry set target-nick [findnicks "$target" "$channel"] if {(${target-nick} != "") &amp;&amp; (![isbotnick ${target-nick}])} {  set target-host "${target-nick}![getchanhost ${target-nick}]"  set sorry($channel) "ban,{$target-nick},${target-host},$target,[clock seconds],$nick"  set sorry(ban:$channel) "${target-nick},${target-host},$target,[clock seconds],$nick"  putloglev 1 * "sorry.tcl: added ban on $channel for '${target-host}' ($target)"  return }}proc sorry:raw {from key text} { global sorry set _target [lindex [split $text] 1] if {[info exists sorry(invite:$_target)]} {  puthelp "PRIVMSG $sorry(invite:$_target) :\001ACTION detected that $_target has left\001"  putloglev 1 * "sorry.tcl: recived 401 from server, invite of $_target to $sorry(invite:$_target) has failed."  return }}proc sorry:pub {nick host handle channel text} { global sorry if {![info exists sorry($channel)]} {  puthelp "NOTICE $nick :Sorry, i have not been able to detect any kicks or bans in $channel"  return 0 } if {[llength $text] == 0} {  regsub -all "," "$sorry($channel)" " " string  switch -- [lindex $string 0] {   "kick" {           set a [lindex $string 1]; set b [lindex $string 3]; set c [join [lrange $string 4 end]]           puthelp "NOTICE $nick :inviting $a to $channel after being kicked [duration [expr {[clock seconds]-$b}]] ago for $c"           set sorry(invite:$a) "$channel"           puthelp "INVITE $a $channel"           return 1          }   "ban" {          set a [lindex $string 1]; set b [lindex $string 3]; set c [lindex $string 4]; set d [lindex $string 5]          puthelp "NOTICE $nick :inviting $a to $channel after being banned by $b [duration [expr {[clock seconds]-$c}]] ago by $d"          if {[sorryBAN "$b" "$channel"]} {           set sorry(invite:$a) "$channel"           putserv "INVITE $a $channel"           return 1          } else {           puthelp "NOTICE $nick :unable to remove the ban $b"           return 0          }         }  } } switch -- [lindex $text 0] {  "-kick" {           if {[info exists sorry(kick:$channel)]} {            regsub -all "," "$sorry(kick:$channel)" " " string            set _nick [lindex $string 0]; set _ktime [lindex $string 2]; set _kwhy [join [lrange $string 3 end]]            puthelp "NOTICE $nick :Inviting $_nick to $channel after being kicked [duration [expr {[clock seconds]-$_ktime}]] ago for $_kwhy"            set sorry(invite:$_nick) "$channel"            putserv "INVITE $_nick $channel"            return 1           } else {            puthelp "NOTICE $nick :I was unable to detect the last kick on $channel, sorry."            return 0           }          }  "-ban" {          if {[info exists sorry(ban:$channel)]} {           regsub -all "," "$sorry(ban:$channel)" " " string           set _nick [lindex $string 0]; set _btime [lindex $string 3]; set _bmask [lindex $string 2]; set _bby [lindex $string 4]           puthelp "NOTICE $nick :Inviting $_nick to $channel after they have been banned by $_bmask [duration [expr {[clock seconds]-$_btime}]] ago by $_bby"           if {[sorryBAN "$_bmask" "$channel"]} {            set sorry(invite:$_nick) "$channel"            putserv "INVITE $_nick $channel"            return 1           } else {            puthelp "NOTICE $nick :sorry, i have not been able to remove the ban $_bmask. You try removing it!"            return 0           }          } else {           puthelp "NOTICE $nick :I was unable to detect the last ban on $channel, sorry."           return 0          }         }  default {           puthelp "NOTICE $nick :Syntax: \002!sorry\002 &lt;-kick/-ban&gt;"           puthelp "NOTICE $nick :Removes the last kick or ban and invites the user to join the channel"           puthelp "NOTICE $nick :if you use the \002-kick\002 option, only the last user kicked will be invited"           puthelp "NOTICE $nick :if you use the \002-ban\002 option, only the last user banned will be invited"           return 1          } }}proc sorryBAN {host channel} { if {[isban "$host"]} {  if {[killban "$host"]} {   return 1  } else {   return 0  } } elseif {[isban "$host" "$channel"]} {  if {[killchanban "$channel" "$host"]} {   return 1  } else {   return 0  } } elseif {[ischanban "$host" "$channel"]} {  pushmode $channel -b $host  return 1 } else {  # we are just going to assume its been removed by someone else  return 1 }} bind pub o|o !sorry sorry:pub bind raw - 401 sorry:raw bind mode - "*+b*" sorry:mode bind kick - "*" sorry:kick putlog "loaded sorry.tcl version 1.0(b) by TCL_no_TK" return</code></pre></div> tested, and it works ok <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> could be betta <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sun Jul 26, 2009 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bro0]]></name></author>
		<updated>2009-06-21T19:37:09-04:00</updated>

		<published>2009-06-21T19:37:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89274#p89274</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89274#p89274"/>
		<title type="html"><![CDATA[!sry to unban and reinvite the last banned user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89274#p89274"><![CDATA[
hi all (:<br><br>it would be great if there is a script which has a function like '!sry'.. if a script of the eggdrop worked wrongly or what ever.. and to reinvite the last  kicked user / banned user (and unban him)..<br>.. in the last 5 minutes (!?)<br><br>and the command should be available for voice (and surly opped) users only.. =p<br><br><br>i hope thats a good idea and there is a scripter who also think so :p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10579">bro0</a> — Sun Jun 21, 2009 7:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
