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

	<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-10-06T01:54:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-06T01:54:16-04:00</updated>

		<published>2004-10-06T01:54:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41588#p41588</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41588#p41588"/>
		<title type="html"><![CDATA[Small script request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41588#p41588"><![CDATA[
The logic is that Liana will only deop herself when Asmodeus is opped. Whether he is opped when he joins, or if he's opped if he's in the channel since a long time we dont care.<br><br>One bot will deop, if the other bot is op. This is only for Liana.  For Asmodeus you can do the same tcl, by replacing the nicks in the string equal and matching functions and by placing them in Asmodeus.<br><blockquote class="uncited"><div>And when Liana get d/c and joins the room and Asmodeus is there. Liana doesn't deop. </div></blockquote>Use this:<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "+o" deop:lianaproc deop:liana {nick uhost hand chan mode target} { global botnick  if {([string equal "+o" $mode]) &amp;&amp; ([string equal "ChanServ" $nick]) &amp;&amp; ([isbotnick $target]) &amp;&amp; ([onchan Asmodeus $chan]) &amp;&amp; ([isop Asmodeus $chan])} {  putquick "MODE $chan -o $botnick"  return 0  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Oct 06, 2004 1:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-06T00:29:24-04:00</updated>

		<published>2004-10-06T00:29:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41586#p41586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41586#p41586"/>
		<title type="html"><![CDATA[Small script request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41586#p41586"><![CDATA[
<blockquote class="uncited"><div>Something like this should do it.<br>You would need to insert this script into your 2nd bot "Liana".<br><div class="codebox"><p>Code: </p><pre><code>bind sign - "*" quit:asmodeusbind mode - "+o" reop:asmodeusproc quit:asmodeus {nick uhost hand chan {reason ""}} { global botnick  if {([string equal -nocase "Asmodeus" $nick]) &amp;&amp; (![botisop $chan])} {   putquick "PRIVMSG ChanServ :OP $chan $botnick"   return 0   }}proc reop:asmodeus {nick uhost hand chan mode target} { global botnick  if {([string equal "+o" $mode]) &amp;&amp; ([string equal "ChanServ" $nick]) &amp;&amp; ([string equal -nocase "Asmodeus" $target]) &amp;&amp; ([botisop $chan])} {  putquick "MODE $chan -o $botnick"  return 0  }}</code></pre></div></div></blockquote>Thanks!<br><br>Okay, it works when Asmodeus leaves. But when he rejoins Liana doesn't deop.<br><br>And when Liana get d/c and joins the room and Asmodeus is there. Liana doesn't deop. <br><br>Thanks again!<p>Statistics: Posted by Guest — Wed Oct 06, 2004 12:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-05T21:31:07-04:00</updated>

		<published>2004-10-05T21:31:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41583#p41583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41583#p41583"/>
		<title type="html"><![CDATA[Small script request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41583#p41583"><![CDATA[
Something like this should do it.<br>You would need to insert this script into your 2nd bot "Liana".<br><div class="codebox"><p>Code: </p><pre><code>bind sign - "*" quit:asmodeusbind mode - "+o" reop:asmodeusproc quit:asmodeus {nick uhost hand chan {reason ""}} { global botnick  if {([string equal -nocase "Asmodeus" $nick]) &amp;&amp; (![botisop $chan])} {   putquick "PRIVMSG ChanServ :OP $chan $botnick"   return 0   }}proc reop:asmodeus {nick uhost hand chan mode target} { global botnick  if {([string equal "+o" $mode]) &amp;&amp; ([string equal "ChanServ" $nick]) &amp;&amp; ([string equal -nocase "Asmodeus" $target]) &amp;&amp; ([botisop $chan])} {  putquick "MODE $chan -o $botnick"  return 0  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Oct 05, 2004 9:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-05T17:43:46-04:00</updated>

		<published>2004-10-05T17:43:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41578#p41578</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41578#p41578"/>
		<title type="html"><![CDATA[Small script request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41578#p41578"><![CDATA[
Hello thar.<br> <br>This is what I want done.<br> <br>I run a fairly decent size channel that requires a bot to be oped pretty much all the time.<br> <br>Lets call Bot 1 "Asmodeus" and Bot 2 "Liana"<br> <br>Now Asmodeus is the main bot. But sometimes it may go down do to ping timeout, netsplit or even peer. Now when this happends and I want Liana to be able to op itself and take over. Of course it'll have to have the same settings set (Users, same scripts loaded ect.) Liana will need to op itself temporarily until Asmodeus returns in which Liana will deop itself and let Asmodeus resume.<br> <br> <br>I hope that explained it.<br> <br>Help wouild gladly be appreciated.<br> <br>Thanks<p>Statistics: Posted by Guest — Tue Oct 05, 2004 5:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
