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

	<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>2011-08-12T11:24:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2011-08-12T11:24:55-04:00</updated>

		<published>2011-08-12T11:24:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97389#p97389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97389#p97389"/>
		<title type="html"><![CDATA[@ lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97389#p97389"><![CDATA[
Ah, okay, I wasn't quite sure what you wanted. Let me see...<br><div class="codebox"><p>Code: </p><pre><code>set oplist {""""""""}bind join - * checkbind nick - * isopproc check {nick host hand chan} {  if {![info exists deop]} {  bind mode - "% +o" deop  }} proc isop {nick host hand chan newnick} {   if {![info exists deop]} {  bind mode - "% +o" deop  }}proc deop {nick host hand chan mode victim} {set host [getchanhost $victim $chan]set mask [lindex [split $host @] 1]set host "*!*@*.[join [lrange [split $mask .] 2 end] .]"  foreach o $oplist {    if {![string equal -nocase [join $o] $victim]} {       putquick "MODE  $chan -o+b $victim $host"       putserv "KICK $chan $victim :You are not permitted to have ops on this channel."    }  } unbind mode - "% +o" deop}</code></pre></div>Again, untested... You'll need to fill in the nicks, obviously. I didn't know what kind of banmask you needed, so I just went with the generic domain ban.<br><br>FYI: after thinking about this, all you need is just a single mind for mode changes. Reason why I was doing it like that above is because if you try to have your bot check for ops as soon as someone joins or changes nick, they may have have +o yet and therefore the proc might not work. So, you can do this to toggle the op check on when someone joins or changes nick, or you can do this the even easier way:<br><div class="codebox"><p>Code: </p><pre><code>set oplist {""""""""}bind mode - "% +o" deopproc deop {nick host hand chan mode victim} {set host [getchanhost $victim $chan]set mask [lindex [split $host @] 1]set host "*!*@*.[join [lrange [split $mask .] 2 end] .]"  foreach o $oplist {    if {![string equal -nocase [join $o] $victim]} {       putquick "MODE  $chan -o+b $victim $host"       putserv "KICK $chan $victim :You are not permitted to have ops on this channel."    }  }}</code></pre></div>Does pretty much the same thing, but that will check -all- mode changes to +o. Seems more appropriate for you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Fri Aug 12, 2011 11:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sydneybabe]]></name></author>
		<updated>2011-08-12T01:07:38-04:00</updated>

		<published>2011-08-12T01:07:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97383#p97383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97383#p97383"/>
		<title type="html"><![CDATA[@ lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97383#p97383"><![CDATA[
Hi Luminous, thanks for the script but what i wanted is a script that you can save a nick on script like this:<br><blockquote class="uncited"><div>set oplist(ops) {<br>"nick1"<br>"nick2"<br>"nick3"<br>"andsoon"<br>}<br><br>bind - * on join<br>bind -* on nickchange<br><br>#if nick is not on the list of oplist(ops) bot will deop/ban the nick <br>#if the nick change and not on the oplist(ops) the bot will deop/ban the nick</div></blockquote>Thanks in advance sir  <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=8947">Sydneybabe</a> — Fri Aug 12, 2011 1:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2011-08-11T10:56:03-04:00</updated>

		<published>2011-08-11T10:56:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97376#p97376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97376#p97376"/>
		<title type="html"><![CDATA[@ lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97376#p97376"><![CDATA[
This sort of thing can be handled with channel flags, normally. Or, is your bot opping people as they join? If so, it's likely either a script you have doing it, or it's an eggdrop setting... if not, can try something like this I suppose. Untested:<br><div class="codebox"><p>Code: </p><pre><code>bind join - * checkproc check {nick host hand chan} {  bind mode - "% +o" deop}proc deop {nick host hand chan mode victim} {  if {[string equal -nocase "ChanServ" $nick] &amp;&amp; ![validuser [nick2hand $victim $chan]]} {     pushmode -o $chan $victim  } unbind mode - "% +o" deop}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Thu Aug 11, 2011 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sydneybabe]]></name></author>
		<updated>2011-08-05T15:01:56-04:00</updated>

		<published>2011-08-05T15:01:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97330#p97330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97330#p97330"/>
		<title type="html"><![CDATA[@ lists]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97330#p97330"><![CDATA[
Hi anyone can help me a script that deop a user when his nick is not on the list of eggdrop upon joining the channel thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8947">Sydneybabe</a> — Fri Aug 05, 2011 3:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
