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

	<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-01-08T05:42:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arcADE]]></name></author>
		<updated>2008-01-08T05:42:32-04:00</updated>

		<published>2008-01-08T05:42:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79869#p79869</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79869#p79869"/>
		<title type="html"><![CDATA[superbitch.tcl with on / off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79869#p79869"><![CDATA[
here is a simple solution.<br><br>add this to your eggdrop.conf<br><div class="codebox"><p>Code: </p><pre><code>setudef flag superbitch</code></pre></div>now change this line<br><div class="codebox"><p>Code: </p><pre><code>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)))} {</code></pre></div>to this<br><div class="codebox"><p>Code: </p><pre><code>if {(($opped != $botnick) &amp;&amp; ($nick != $opped) &amp;&amp; ([onchan $nick $chan]) &amp;&amp; (![wasop $opped $chan]) &amp;&amp; [channel get $chan superbitch])} {</code></pre></div>this should make the superbitch channel flag available to the .chanset dcc command and also make the script check if the channel is set as +superbitch when executing the proc. About the .netchanset command well since I do not have the code I can not implement it but if it works as I think it works you will be able to use it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7334">arcADE</a> — Tue Jan 08, 2008 5:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2008-01-06T01:02:22-04:00</updated>

		<published>2008-01-06T01:02:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79835#p79835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79835#p79835"/>
		<title type="html"><![CDATA[superbitch.tcl with on / off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79835#p79835"><![CDATA[
This can be viewed as a future feature request for the author, slennox. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Jan 06, 2008 1:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darkwingduck]]></name></author>
		<updated>2007-06-17T15:43:56-04:00</updated>

		<published>2007-06-17T15:43:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73624#p73624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73624#p73624"/>
		<title type="html"><![CDATA[superbitch.tcl with on / off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73624#p73624"><![CDATA[
hello,<br>can somebody help me to change superbitch.tcl.<br>i need a switch in the .chanset options to turn off it.<br><br>i mean: .netchanset #channel -superbitch<br><br>The standard setting must be on.<br><br>here is the script:<br><div class="codebox"><p>Code: </p><pre><code># netbots.tcl v4.10 (8 August 2005)# Copyright 1998-2005 by slennox# http://www.egghelp.org/## superbitch.tcl component script ##proc sb_bitch {nick uhost hand chan mode opped} {  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]} {            pushmode $chan -o $opped            pushmode $chan -o $nick            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])))} {            pushmode $chan -o $opped            pushmode $chan -o $nick            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]) &amp;&amp; (($sb_chans == "") || ([lsearch -exact $sb_chans [string tolower $chan]] != -1)))} {        pushmode $chan -o $opped        putlog "superbitch: opped non +o user $opped on $chan - reversing."        nb_sendcmd * rbroadcast "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_bitchreturn "nb_info 4.10.0"</code></pre></div>thank you very much for help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9069">darkwingduck</a> — Sun Jun 17, 2007 3:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
