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

	<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-01-28T17:20:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[NoFear]]></name></author>
		<updated>2004-01-28T17:20:18-04:00</updated>

		<published>2004-01-28T17:20:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33043#p33043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33043#p33043"/>
		<title type="html"><![CDATA[command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33043#p33043"><![CDATA[
i just don't understand this.. sorry<div class="codebox"><p>Code: </p><pre><code># superbitch.tcl v2.0 (4 June 2000)# copyright (c) 1998-2000 by slennox &lt;slennox@egghelp.org&gt;# slennox's eggdrop page - http://www.egghelp.org/## This script provides an enhanced bitch mode. It deops both the user who# was opped and the user who performed the disallowed op. It is very useful# for protecting the channel from gullible ops who accidentally op someone# they shouldn't, or from ops who use exploitable clients/scripts and may# unintentionally op someone via an exploit (e.g. CTCPREPLY backdoor). The# script doesn't completely replace eggdrop's +bitch channel mode - you may# still wish to use that in conjunction with superbitch.tcl.## Note: superbitch.tcl may not function correctly on eggdrop 1.4.0-1.4.1# due to a pushmode bug in those versions of eggdrop. The problem is fixed# in 1.4.2 and later. 1.3.x bots are not affected by this problem.## v2.0 - New standalone release. Contains refinements and features from the#        netbots.tcl version of superbitch.tcl.# Specify the list of channels to activate superbitch on.set sb_chans "#H-Town"# Valid settings: one channel like "#donkeys", a list of channels like# "#donkeys #cows #pigs", or "" to activate on all channels.# The flags for users who are allowed to give op to users with the flags# specified in sb_canopflags.set sb_canop "nb|-"# Valid settings: set in globalflags|chanflags format (e.g. "m|m" means# global OR channel master, "m|-" means global masters only), or set to ""# to specify that no users are allowed to op.# The flags for users who are allowed to be opped by users with an sb_canop# flag.set sb_canopflags "nb|-"# Valid settings: set in globalflags|chanflags format (e.g. "m|m" means# global OR channel master, "m|-" means global masters only), or set to ""# to specify that no users are allowed to be opped.# The flags for users who are allowed to give op to anyone. This setting# ignores sb_canop and sb_canopflags (e.g. you can set sb_canop to "" but# users with flags specified in sb_canopany will still be allowed to op# anyone).set sb_canopany "nb|-"# Valid settings: set in globalflags|chanflags format (e.g. "m|m" means# global OR channel master, "m|-" means global masters only), or set to ""# to specify that no users have the 'can op anyone' privilege.# If a user ops someone they shouldn't, remove their global &amp; channel +o# status and give them the +d flag? (note that +m/n is not removed).set sb_remove 0# Valid settings: 1 to enable, 0 to disable.# List of users to send a note to if a user's +o status is removed by# superbitch.tcl.set sb_note "NoFear Dejo"# Valid settings: one user like "Tom", a list of users like# "Tom Dick Harry", or "" to specify that no notes are sent.# Make the bot double-check who it opped after opping a nick, reversing the# op if the opped user doesn't match +o? This was mainly designed to help# prevent 'op cheating', but I haven't tested it for that so I'm not sure# if it's actually effective.set sb_checkop 0# Valid settings: 1 to enable, 0 to disable.setudef flag superbitch# Don't edit below unless you know what you're doing.if {$numversion &lt; 1040200} {  if {[info commands isop] != ""} {    proc wasop {nick chan} {      return [isop $nick $chan]    }  }}proc sb_bitch {nick uhost hand chan mode opped} { if {![channel get $chan superbitch]} { return }  global botnick sb_chans sb_canop sb_canopany sb_canopflags sb_checkop sb_note sb_remove  if {$mode == "+o"} {    if {$nick != $botnick} {      if {((($opped != $botnick) &amp;&amp; ($nick != $opped) &amp;&amp; ([onchan $nick $chan]) &amp;&amp; (![wasop $opped $chan])) &amp;&amp; (($sb_chans == "") || ([lsearch -exact $sb_chans [string tolower $chan]] != -1)))} {        if {![matchattr [nick2hand $opped $chan] $sb_canopflags $chan]} {          if {(($sb_canopany == "") || (![matchattr $hand $sb_canopany $chan]))} {            putquick "KICK $chan $opped :Permission Denied"            putquick "KICK $chan $nick :Permission Denied"            if {(($sb_remove) &amp;&amp; ([validuser $hand]) &amp;&amp; ([matchattr $hand o|o $chan]))} {              chattr $hand -o+d|-o+d $chan              if {[info commands sendnote] != ""} {                foreach recipient $sb_note {                  if {[validuser $recipient]} {                    sendnote SUPERBITCH $recipient "Removed +o from $hand (opped $opped on $chan)"                  }                }              }            }          }        } else {          if {((($sb_canopany == "") || (![matchattr $hand $sb_canopany $chan])) &amp;&amp; (($sb_canop == "") || (![matchattr $hand $sb_canop $chan])))} {             putquick "KICK $chan $opped :Permission Denied"              putquick "KICK $chan $nick :Permission Denied"            if {(($sb_remove) &amp;&amp; ([validuser $hand]) &amp;&amp; ([matchattr $hand o|o $chan]))} {              chattr $hand -o+d|-o+d $chan              if {[info commands sendnote] != ""} {                foreach recipient $sb_note {                  if {[validuser $recipient]} {                    sendnote SUPERBITCH $recipient "Removed +o from $hand (opped $opped on $chan)"                  }                }              }            }          }        }      }    } else {      if {(($sb_checkop) &amp;&amp; (![matchattr [nick2hand $opped $chan] o|o $chan]))} {        putquick "KICK $chan $opped :Permission Denied"        putlog "superbitch: opped non +o user $opped on $chan - reversing."      }    }  }  return 0}set sb_chans [split [string tolower $sb_chans]] ; set sb_note [split $sb_note]bind mode - * sb_bitchputlog "Loaded superbitch.tcl v2.0 by slennox"return</code></pre></div>it looks like this.. can you please change this code so that will work? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3825">NoFear</a> — Wed Jan 28, 2004 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-01-28T11:17:36-04:00</updated>

		<published>2004-01-28T11:17:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33009#p33009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33009#p33009"/>
		<title type="html"><![CDATA[command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33009#p33009"><![CDATA[
By using user defined channel flags.<br><br>Example: Put "setudef flag superbitch" outside your proc in that tcl file and "if {![channel get $chan superbitch]} { return }" inside your proc as an check for that specific channel flag. If it is enabled then continue with the proc, else return.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jan 28, 2004 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NoFear]]></name></author>
		<updated>2004-01-27T17:00:57-04:00</updated>

		<published>2004-01-27T17:00:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32974#p32974</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32974#p32974"/>
		<title type="html"><![CDATA[command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32974#p32974"><![CDATA[
sure.<br># Specify the list of channels to activate superbitch on.<br>set sb_chans "#H-Town"<br># Valid settings: one channel like "#donkeys", a list of channels like<br># "#donkeys #cows #pigs", or "" to activate on all channels.<br>i can set channels that superbitch will work only in the file.. i would like to set channels in bot dcc chat. and if i type .netchanset #chan1 +superbitch then this superbitch script will work on that channel.. but i don't know how to do this;(<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3825">NoFear</a> — Tue Jan 27, 2004 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-01-27T14:56:47-04:00</updated>

		<published>2004-01-27T14:56:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32962#p32962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32962#p32962"/>
		<title type="html"><![CDATA[command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32962#p32962"><![CDATA[
Can you be a lil more specific on what you want to say/do?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jan 27, 2004 2:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NoFear]]></name></author>
		<updated>2004-01-27T12:09:51-04:00</updated>

		<published>2004-01-27T12:09:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32947#p32947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32947#p32947"/>
		<title type="html"><![CDATA[command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32947#p32947"><![CDATA[
Ok, i have one question. i have tcl script and i can just set channels in that tcl like "#chan1 #chan2", but i want to set channels in eggdrop dcc chat (.netchanset #chan1 +script) can you please help me with this? thanks for help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3825">NoFear</a> — Tue Jan 27, 2004 12:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
