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

	<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-03-19T17:05:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-03-19T17:05:02-04:00</updated>

		<published>2008-03-19T17:05:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81914#p81914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81914#p81914"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81914#p81914"><![CDATA[
hi Sir_fz.<br><br>don't work with this code. <br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Wed Mar 19, 2008 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-03-19T16:34:36-04:00</updated>

		<published>2008-03-19T16:34:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81913#p81913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81913#p81913"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81913#p81913"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>chattr [nick2hand $kicker $chan] |+d-o $chan</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Mar 19, 2008 4:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-03-19T16:04:05-04:00</updated>

		<published>2008-03-19T16:04:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81910#p81910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81910#p81910"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81910#p81910"><![CDATA[
a little question.<br><br>how add this in the code?<br><br><div class="codebox"><p>Code: </p><pre><code>chattr $kickusers |+d-o $chan</code></pre></div>where $kickusers is the HAND of $kicker.<br><br>how add this?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Wed Mar 19, 2008 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-03-17T06:25:42-04:00</updated>

		<published>2008-03-17T06:25:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81848#p81848</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81848#p81848"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81848#p81848"><![CDATA[
Thanks speechles Sir_Fz.<br><br>work now.<br><br>i modif something and that work perfect, suspend de user and put flag +d-o in channel <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>thanks. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br> <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=8762">Nor7on</a> — Mon Mar 17, 2008 6:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-03-16T20:35:28-04:00</updated>

		<published>2008-03-16T20:35:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81834#p81834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81834#p81834"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81834#p81834"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![isbotnick $vict]...</code></pre></div>isbotnick only checks the eggdrop's nickname, not any other bots, just that single bot. To check for any bot simply check if the user has the bot flag (b) then you know it's a bot and part of the botnet.<br><div class="codebox"><p>Code: </p><pre><code>setudef flag xkickbind kick - * xstuff:kickproc xstuff:kick {nick host hand chan target reason} {  if {[channel get $chan xkick] &amp;&amp; $nick == "X"} {    set kicker [string trim [lindex [split $reason] 0] {()}]    if {[matchattr [nick2hand $target $chan] b|b $chan] &amp;&amp; [matchattr [nick2hand $kicker $chan] mo|mo $chan]} {      putserv "PRIVMSG X :SUSPEND $chan $kicker 4d 100"      putserv "PRIVMSG X :UNBAN $chan $target"      if {[isbotnick $target]} {         puthelp "PRIVMSG X :INVITE $chan"      } else {         puthelp "INVITE $target $chan"      }    }  }}putlog "xstuff armed and ready for revenge."</code></pre></div>What this does is watch all kicks made by X. If it was a bot (even an unopped bot in the bots userlist) and the person  requesting it to be kicked has +o or +m, they get suspended. Afterwards bot unbans the bot banned by the user. If the bot itself was banned, it will have X invite it back, otherwise the bot itself will invite back the banned bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sun Mar 16, 2008 8:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-03-16T18:41:00-04:00</updated>

		<published>2008-03-16T18:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81830#p81830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81830#p81830"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81830#p81830"><![CDATA[
i modif this.<br><div class="codebox"><p>Code: </p><pre><code>setudef flag xkickbind kick * * xstuff:kickproc xstuff:kick {nick hand text chan vict reas} { set unicks [lindex $text 0]set users [nick2hand $unicks $chan]   if {![isbotnick $vict] || [matchattr $users o|o $chan]} return  if {[channel get $chan xkick] &amp;&amp; $nick == "X"} {    set kicker [string trim [lindex [split $reas] 0] {()}]    putserv "PRIVMSG X :SUSPEND $chan $kicker 4d 100"  }} putlog "SUSPEND USERS LOADED"</code></pre></div>but too don't work, only work when kick the eggdrop.<br><br>Any suggestion? <br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Sun Mar 16, 2008 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-03-16T15:13:02-04:00</updated>

		<published>2008-03-16T15:13:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81824#p81824</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81824#p81824"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81824#p81824"><![CDATA[
yeah.<br><br>i tested with a user (flag o) but don't work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Sun Mar 16, 2008 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-03-16T15:07:41-04:00</updated>

		<published>2008-03-16T15:07:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81823#p81823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81823#p81823"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81823#p81823"><![CDATA[
o|o means global or channel-specific +o user-flag and not +o channel mode (op). You need to add the users you wish to protect as +o users in your Eggdrop's userlist.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Mar 16, 2008 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-03-16T09:44:41-04:00</updated>

		<published>2008-03-16T09:44:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81813#p81813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81813#p81813"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81813#p81813"><![CDATA[
hi.<br><br>the code don't work, don't send nothing.<br><br>so, sorry but this code work, but just when kicked the eggdrop.<br><br><div class="codebox"><p>Code: </p><pre><code>setudef flag xkickbind kick * * xstuff:kickproc xstuff:kick {nick hand text chan vict reas} { set unicks [lindex $text 0]  if {![isbotnick $vict] || [matchattr [nick2hand $unicks $chan] b $chan]} return  if {[channel get $chan xkick] &amp;&amp; $nick == "X"} {    set kicker [string trim [lindex [split $reas] 0] {()}]    putserv "PRIVMSG X :SUSPEND $chan $kicker 4d 100"  }} putlog "SUSPEND USERS LOADED"</code></pre></div>this code work only when kick the eggdrop, but don't work when kick other bot.<br><br>i change the flag <strong class="text-strong">b</strong> to flag <strong class="text-strong">o|o</strong> but don't work too.<br><br>so something wrong ?<br><br> <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=8762">Nor7on</a> — Sun Mar 16, 2008 9:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-03-16T07:06:35-04:00</updated>

		<published>2008-03-16T07:06:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81808#p81808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81808#p81808"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81808#p81808"><![CDATA[
Try<div class="codebox"><p>Code: </p><pre><code>bind KICK - * CService:kick:by:X:revengeproc CService:kick:by:X:revenge { nick host hand chan target reason } { global botnick if {$hand == "X" &amp;&amp; ([isbotnick $target] || [matchattr [nick2hand $target $chan] mo|mo $chan])} {  set temp1 [lindex [split [lindex [split $reason] 0] "("] 1]  set username [lindex [split [lindex [split $temp1] 0] ")"] 0]  putserv "PRIVMSG X :SUSPEND $chan $username 5 D"  putserv "PRIVMSG X :UNBAN $chan $botnick"  puthelp "PRIVMSG X :INVITE $chan" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Mar 16, 2008 7:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-03-16T06:15:17-04:00</updated>

		<published>2008-03-16T06:15:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81803#p81803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81803#p81803"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81803#p81803"><![CDATA[
how make this: <br>if an user (+o or +m) as kicked for other user, the eggdrop suspend the username kicker.<br><br>sorry for the baaaaaaaaaaaaad english lol.<br><br>Thanks  <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=8762">Nor7on</a> — Sun Mar 16, 2008 6:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-01T07:07:20-04:00</updated>

		<published>2007-05-01T07:07:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72415#p72415</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72415#p72415"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72415#p72415"><![CDATA[
Tips: You can use just $hand instead of [nick2hand $nick] and [isbotnick $target] instead of $target == $botnick (so you won't need $botnick anymore).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 01, 2007 7:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkRaptor]]></name></author>
		<updated>2007-05-01T00:40:57-04:00</updated>

		<published>2007-05-01T00:40:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72412#p72412</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72412#p72412"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72412#p72412"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind KICK - * CService:kick:by:X:revengeproc CService:kick:by:X:revenge { nick host hand chan target reason } {        global botnick        if {[nick2hand $nick] == "X" &amp;&amp; $target == $botnick} {                set temp1 [lindex [split [lindex [split $reason] 0] "("] 1]                set username [lindex [split [lindex [split $temp1] 0] ")"] 0]                putserv "PRIVMSG X :SUSPEND $chan $username 5 D"                putserv "PRIVMSG X :UNBAN $chan $botnick"                puthelp "PRIVMSG X :INVITE $chan"        }}</code></pre></div>EDIT: Changed putquick to putserv to prevent flooding<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7635">DarkRaptor</a> — Tue May 01, 2007 12:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[silverboy]]></name></author>
		<updated>2007-05-01T00:02:20-04:00</updated>

		<published>2007-05-01T00:02:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72411#p72411</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72411#p72411"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72411#p72411"><![CDATA[
wow... this one is nice, cud yu pls add /msg x unban $chan bot and /msg x invite chan $bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7362">silverboy</a> — Tue May 01, 2007 12:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkRaptor]]></name></author>
		<updated>2007-04-30T14:08:19-04:00</updated>

		<published>2007-04-30T14:08:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72401#p72401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72401#p72401"/>
		<title type="html"><![CDATA[ban bot via x]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72401#p72401"><![CDATA[
Try this:<br><div class="codebox"><p>Code: </p><pre><code>bind KICK - * CService:kick:by:X:revengeproc CService:kick:by:X:revenge { nick host hand chan target reason } {        global botnick        if {[nick2hand $nick] == "X" &amp;&amp; $target == $botnick} {                set temp1 [lindex [split [lindex [split $reason] 0] "("] 1]                set username [lindex [split [lindex [split $temp1] 0] ")"] 0]                putquick "PRIVMSG X :SUSPEND $chan $username 5 D"        }}</code></pre></div><br>Note:  X must be in bot's userlist.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7635">DarkRaptor</a> — Mon Apr 30, 2007 2:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
