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

	<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>2004-11-24T14:01:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-11-24T14:01:19-04:00</updated>

		<published>2004-11-24T14:01:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43075#p43075</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43075#p43075"/>
		<title type="html"><![CDATA[X Protection Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43075#p43075"><![CDATA[
Nah, I'm way to lazy atm. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Nov 24, 2004 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blood_x]]></name></author>
		<updated>2004-11-24T13:07:02-04:00</updated>

		<published>2004-11-24T13:07:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43073#p43073</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43073#p43073"/>
		<title type="html"><![CDATA[X Protection Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43073#p43073"><![CDATA[
Yeah, I think it is from xstuff.tcl.. I don't remember it coz I've remove some unneeded proc for my customization.. Argh, can you give direct foward example.. cause I'm really busy to read a README.. hehe.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=402">blood_x</a> — Wed Nov 24, 2004 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-11-23T15:21:16-04:00</updated>

		<published>2004-11-23T15:21:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43043#p43043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43043#p43043"/>
		<title type="html"><![CDATA[X Protection Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43043#p43043"><![CDATA[
A lil tweak to your (wich look a LOT with the ones from xstuff.tcl heh) codes:<div class="codebox"><p>Code: </p><pre><code># Suspend proc kick:extract {nick uh hand chan vict reas} {  if {$nick == "X" &amp;&amp; [isbotnick $vict]} {    set kicker [string trim [lindex [split $reas] 0] {()}]     putserv "PRIVMSG X :suspend $chan $kicker 7 d 340"  }}# Unban proc xstuff:ban {nick uhost hand chan mc ban} {   global botnick botname   if {![string match -nocase $ban $botname] || ![botisop $chan]} {    return  }  set bmask "*!*@[lindex [split $uhost @] 1]"   if {[string match "$bmask" "$botname"]} {    set bmask [maskhost *!*[string trimleft $uhost ~]]  }   putserv "MODE $chan -bo+b $ban $nick $bmask"   putserv "KICK $chan $nick :Not Allowed - Banning Service Bot"} </code></pre></div>If you intend or use the x(channels) variable to *mark* the channels where you want a specific thing to happen better use setudef (check the doc files), as for the on-deop a "bind mode" should do the trick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Nov 23, 2004 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blood_x]]></name></author>
		<updated>2004-11-23T09:16:33-04:00</updated>

		<published>2004-11-23T09:16:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43028#p43028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43028#p43028"/>
		<title type="html"><![CDATA[X Protection Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43028#p43028"><![CDATA[
TCL Script as below;<br><br>set x(channels) "#chan1 #chan2" <br><br>bind kick - "*" kick:extract <br>bind mode - "* +b" xstuff:ban <br><br># Suspend<br>proc kick:extract {nick uh hand chan vict reas} { <br>global botnick <br>if {$nick != "X"} { return } <br>set kicker [string trim [lindex [split $reas] 0] {()}] <br>if {$vict == $botnick} { <br>putserv "PRIVMSG X :suspend $chan ${kicker} 7 d 340" } <br>return } <br><br># Unban <br>proc xstuff:ban {nick uhost hand chan mc ban} { <br>global botnick botname <br>set bmask "*!*@[lindex [split $uhost @] 1]" <br>if {[string match "$ban" "$botname"] &amp;&amp; [botisop $chan]} { <br>if {[string match "$bmask" "$botname"]} { set bmask [maskhost *!*[string trimleft $uhost ~]]} <br>putserv "MODE $chan -bo+b $ban $nick $bmask" <br>putserv "KICK $chan $nick :Not Allowed - Banning Service Bot" } <br>return } <br><br>By using this script, someone who kick or ban channel bot (eggdrop) using X on undernet.org will get suspend. Here, how to add if someone deop the bot (eggdrop) using X? In other word, if someone deop the bot using X, he/she will also get suspended.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=402">blood_x</a> — Tue Nov 23, 2004 9:16 am</p><hr />
]]></content>
	</entry>
	</feed>
