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

	<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-08-23T00:43:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T00:43:50-04:00</updated>

		<published>2004-08-23T00:43:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40039#p40039</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40039#p40039"/>
		<title type="html"><![CDATA[isop function doesn't work ?!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40039#p40039"><![CDATA[
<blockquote class="uncited"><div>I use a lot of timers, (more than 80,000 for 10 days), maybe memory is saturated...</div></blockquote>Could be true!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 23, 2004 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jil Larner]]></name></author>
		<updated>2004-08-22T09:41:43-04:00</updated>

		<published>2004-08-22T09:41:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39996#p39996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39996#p39996"/>
		<title type="html"><![CDATA[isop function doesn't work ?!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39996#p39996"><![CDATA[
I tried something :<div class="codebox"><p>Code: </p><pre><code>if {![botisop $channel] &amp;&amp; ![botishalfop $channel]} {putquick "PRIVMSG ChanServ :op $channel"}</code></pre></div>So, when the bot thinks it's not anymore opped (what is false because with a putserv "MODE #chan +o otheruser" it works), it uses chanserv to enforce +o mode, but sometimes I have a "need op or halfop", time for the +o mode being caught by the eggdrop.<br>But it loses its op status sometimes... I don't understand why... I restarted a couple of times the bot, I will see. I use a lot of timers, (more than 80,000 for 10 days), maybe memory is saturated...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5337">Jil Larner</a> — Sun Aug 22, 2004 9:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-20T14:35:22-04:00</updated>

		<published>2004-08-20T14:35:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39943#p39943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39943#p39943"/>
		<title type="html"><![CDATA[isop function doesn't work ?!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39943#p39943"><![CDATA[
Weird, hmmmm... is the bot even opped or not?<br>I am not sure about this halfop thing though!<br>Give it a good restart at first.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Aug 20, 2004 2:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jil Larner]]></name></author>
		<updated>2004-08-20T14:13:47-04:00</updated>

		<published>2004-08-20T14:13:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39942#p39942</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39942#p39942"/>
		<title type="html"><![CDATA[isop function doesn't work ?!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39942#p39942"><![CDATA[
No, on partyline :<div class="codebox"><p>Code: </p><pre><code>.tcl botisop #ludwigTcl: 0</code></pre></div>But bot is op on this channel !  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised">  <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=5337">Jil Larner</a> — Fri Aug 20, 2004 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-20T14:35:50-04:00</updated>

		<published>2004-08-20T13:33:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39940#p39940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39940#p39940"/>
		<title type="html"><![CDATA[isop function doesn't work ?!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39940#p39940"><![CDATA[
Use this type of structure, maybe:<br><div class="codebox"><p>Code: </p><pre><code>if {([botisop $channel) || ([botishalfop $channel])} {............................}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Aug 20, 2004 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jil Larner]]></name></author>
		<updated>2004-08-20T13:17:12-04:00</updated>

		<published>2004-08-20T13:17:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39939#p39939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39939#p39939"/>
		<title type="html"><![CDATA[isop function doesn't work ?!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39939#p39939"><![CDATA[
With or without return 1, botisop returns false after the first putkick. Any idea ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5337">Jil Larner</a> — Fri Aug 20, 2004 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jil Larner]]></name></author>
		<updated>2004-08-20T12:59:15-04:00</updated>

		<published>2004-08-20T12:59:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39937#p39937</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39937#p39937"/>
		<title type="html"><![CDATA[isop function doesn't work ?!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39937#p39937"><![CDATA[
Thanks, i gonna try. I just believed that would be quicker<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5337">Jil Larner</a> — Fri Aug 20, 2004 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-20T10:38:11-04:00</updated>

		<published>2004-08-20T10:38:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39933#p39933</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39933#p39933"/>
		<title type="html"><![CDATA[isop function doesn't work ?!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39933#p39933"><![CDATA[
I suggest you remove that 'return 1' then it might be okay.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Aug 20, 2004 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jil Larner]]></name></author>
		<updated>2004-08-20T08:44:40-04:00</updated>

		<published>2004-08-20T08:44:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39930#p39930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39930#p39930"/>
		<title type="html"><![CDATA[isop function doesn't work ?!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39930#p39930"><![CDATA[
Hello,<br><br>I have a tcl script which detects smilies flood and, when needed, kick or ban  the user. Because the bot isn't always op/halfop I have a :<div class="codebox"><p>Code: </p><pre><code>if {![botisop $channel] &amp;&amp; ![botishalfop $channel]} {return 0}</code></pre></div>The first time, it works, user is notified, and, after, kicked. But just after kick, botisop returns false, and the scripts doesn't work anymore. I need to manually deop and reop bot if I want the script working.<br><br>See the entire function here :<div class="codebox"><p>Code: </p><pre><code>proc scanner:punish:smileyparty {nick uhost channel} {if {![botisop $channel] &amp;&amp; ![botishalfop $channel]} { return 0 }# Protection des +fif {[matchattr [nick2hand $nick $channel] "f"]} { putserv "NOTICE $nick :On se calme, mon ami(e)..."return 0 }global flood_Oo_punish flood_Oo_listif {[info exists flood_Oo_punish($uhost)]} {if {$flood_Oo_punish($uhost) == 1} {set flood_Oo_punish($uhost) 2putkick $channel $nick "J'aime pas tes smilies, alors arrête."return 1} elseif {$flood_Oo_punish($uhost) == 2} {set flood_Oo_punish($uhost) 3set bhost [mkbhost $uhost 1]newchanban $channel $bhost Liantop "\[Smiley Party] T'as pas compris ? J'ai dit STOP" 5putkick $channel $nick "T'as pas compris ? J'ai dit STOP"return 1} elseif {$flood_Oo_punish($uhost) == 3} {set flood_Oo_punish($uhost) 4set bhost [mkbhost $uhost 2]newchanban $channel $bhost Liantop "\[Smiley Party] J'ai horreur de me répéter. Reste dehors." 15putkick $channel $nick "J'ai horreur de me répéter. Reste dehors."return 1} else {set flood_Oo_punish($uhost) 4set bhost [mkbhost $uhost 2]newban $bhost Liantop "\[Flood Smiley] Tu veux jouer au con, tu vas perdre." 4320putkick $channel $nick "Tu veux jouer au con, tu vas perdre."}} else {set flood_Oo_punish($uhost) 1putserv "NOTICE $nick : Arrête tes smileys, sinon tu vas mal finir."}}</code></pre></div>I don't know if it's a bug of my script or of the eggdrop core... I may have to use a channel list where function must be actived, even if it reports errors when not op...<br><br>Using tcl 8.4 and eggdrop 1.6.16<br><br>Any idea ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5337">Jil Larner</a> — Fri Aug 20, 2004 8:44 am</p><hr />
]]></content>
	</entry>
	</feed>
