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

	<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>2007-05-15T16:17:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-05-15T16:17:58-04:00</updated>

		<published>2007-05-15T16:17:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72785#p72785</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72785#p72785"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72785#p72785"><![CDATA[
ok i got it, it was "bind sign - * cycle:chan" ok i got every thing i need thx for all ya help. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Tue May 15, 2007 4:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-15T16:13:55-04:00</updated>

		<published>2007-05-15T16:13:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72784#p72784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72784#p72784"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72784#p72784"><![CDATA[
&lt;irony&gt;/me sharpens his psycic powers, but is yet unable to telepathicially read the error out of sdays' mind...&lt;/irony&gt;<br><br>It would really be helpful if you could post atleast some information on the error you actually get<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue May 15, 2007 4:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-05-15T14:45:38-04:00</updated>

		<published>2007-05-15T14:45:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72783#p72783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72783#p72783"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72783#p72783"><![CDATA[
Okay, thats better but when i do "bind quit - * cycle:chan" it gives a error :S<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Tue May 15, 2007 2:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-15T11:54:37-04:00</updated>

		<published>2007-05-15T11:54:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72782#p72782</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72782#p72782"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72782#p72782"><![CDATA[
Or simply "if {![botisop $chan] &amp;&amp; [llength [chanlist $chan -b]] &lt;= 1} {..."<br><br>Also worth noting, you code only checks wether the one parting the channel was a bot or not, it does not test how many ppl still remain in the channel (bots or nonbots). This could easily be exploited by a malicious floodnet...<br><br>Furthermore, it would also be an improvement to check wether we know any opped (person or bot) in the channel before parting, as the current code could even prevent normal botnet-opping in some scenarios.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue May 15, 2007 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-05-15T11:00:53-04:00</updated>

		<published>2007-05-15T11:00:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72781#p72781</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72781#p72781"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72781#p72781"><![CDATA[
ok i got it i did this "if {[ischanset $chan "+regainop"] &amp;&amp; ![botisop $chan] &amp;&amp; ![matchattr $hand b|b $chan]} {" thanks for all your help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Tue May 15, 2007 11:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-15T10:17:24-04:00</updated>

		<published>2007-05-15T10:17:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72780#p72780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72780#p72780"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72780#p72780"><![CDATA[
Re-read the first line in my previous post...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue May 15, 2007 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-05-15T08:30:37-04:00</updated>

		<published>2007-05-15T08:30:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72779#p72779</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72779#p72779"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72779#p72779"><![CDATA[
i mean like cycle it parts all bots with out having to set a number is there any way to ignore all bots in nicklist and when all users part then it parts and joins for op? like theres 2 bots off line now if i set 9 it won't work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Tue May 15, 2007 8:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-14T20:54:44-04:00</updated>

		<published>2007-05-14T20:54:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72767#p72767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72767#p72767"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72767#p72767"><![CDATA[
You could always test for flags, such as -b when doing the chanlist.<br>Also, it "feels" more intuitive to use "[llength ....] &lt;= 2" rather than "[llength ...]-1 == 1"...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon May 14, 2007 8:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-05-14T20:51:47-04:00</updated>

		<published>2007-05-14T20:51:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72766#p72766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72766#p72766"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72766#p72766"><![CDATA[
i know that but that but this "if {![botisop $chan] &amp;&amp; ([llength [chanlist $chan]]-1 == 1)} { " i need all bots in there but they are off and on so changing 1 to 9 wont work is there anyway to ignore botnet in channel or something? and this is only on efnet too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Mon May 14, 2007 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-14T20:45:45-04:00</updated>

		<published>2007-05-14T20:45:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72765#p72765</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72765#p72765"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72765#p72765"><![CDATA[
The big problem here, is that as soon as your bot detects that it has left the channel (assuming you did'nt remove the channel or set it +inactive), it will rejoin it, leaving little time to syncronize the cycling of a whole botnet, especially if they're connected to multiple irc-servers..<br><br>As stated before, you'd have best chances of a successful cycling if all bots but one set the channel +inactive, wait for the last one to cycle and regain ops, then set it -inactive (and rejoin).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon May 14, 2007 8:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-05-14T19:32:39-04:00</updated>

		<published>2007-05-14T19:32:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72764#p72764</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72764#p72764"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72764#p72764"><![CDATA[
I'm using netbots, and i have all bots in the channel but they are on and off random, i need it to work when a user part like changes 1 to 9 but they are off and on, is there anyway to do it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Mon May 14, 2007 7:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-12T19:34:17-04:00</updated>

		<published>2007-05-12T19:34:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72721#p72721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72721#p72721"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72721#p72721"><![CDATA[
I'm assuming that the parted nick haven't been removed from [chanlist $chan] yet, so the result of [llength [chanlist $chan]] would be 2 instead of 1 (no nicks left except the bot itself). That's why I've added -1 (for him to test it) to remove the extra counted nick from the list. In case you mean it's weird in terms of syntax, if-statements take expressions which are evaluated the same way as [expr] so you can freely use arithmetic expressions inside an if-statement.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat May 12, 2007 7:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-12T19:32:22-04:00</updated>

		<published>2007-05-12T19:32:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72720#p72720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72720#p72720"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72720#p72720"><![CDATA[
@Sir_Fz:<br>Actually, the issue with your script is that it assumes there is only one bot remaining within the channel, whereas in this scenario there is 9.<br><br>The best approach to be sure that all bots leave the channel at the same time, would be to let all bots but one set the channel +inactive, let the last bot cycle (and regain ops), and then set their channel -inactive.<br>This would require a botnet-communicating script to function reliably.<br>You probably would'nt like to initialize this procedure until there is only known bots in the channel. "chanlist &lt;channel&gt; -b" might be useful for testing this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat May 12, 2007 7:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2007-05-12T18:15:35-04:00</updated>

		<published>2007-05-12T18:15:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72719#p72719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72719#p72719"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72719#p72719"><![CDATA[
what's with the '[llength [chanlist $chan]]-1' ? (with the '-1' thing actualy) seems a bit weird like that.. have you tested it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat May 12, 2007 6:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-12T18:05:12-04:00</updated>

		<published>2007-05-12T18:05:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72718#p72718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72718#p72718"/>
		<title type="html"><![CDATA[auto regain op..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72718#p72718"><![CDATA[
If your bot is oped, it won't cycle. If that's not the case, then try<div class="codebox"><p>Code: </p><pre><code>bind part - * cycle:chanproc cycle:chan {nick uhost hand chan arg} { if {![botisop $chan] &amp;&amp; ([llength [chanlist $chan]]-1 == 1)} {  putquick "part $chan" }}</code></pre></div>I think there's an issue where the parting nick is still not removed from [chanlist] thus the [llength [chanlist $chan]] returns 2 instead of 1.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat May 12, 2007 6:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
