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

	<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>2012-01-25T12:09:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-01-25T12:09:49-04:00</updated>

		<published>2012-01-25T12:09:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98614#p98614</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98614#p98614"/>
		<title type="html"><![CDATA[When eggdrop has no op on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98614#p98614"><![CDATA[
<blockquote class="uncited"><div>My code triggers a single time, making sure that it doesn't attempt to op itself if already opped.</div></blockquote>really?<div class="codebox"><p>Code: </p><pre><code>utimer 5 check:status </code></pre></div>then what this do? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>The need of OP is triggered only when the bot needs OP, not every 5 seconds like in your case. Anyway, if he wants to have the bot on a channel where it doesn't have op then he can add a user defined channel flag (see 'setudef') and then check if that flag is on/off for that channel and proceed with what command he wishes to issue.<br><br>Example:<div class="codebox"><p>Code: </p><pre><code>setudef flag botneedsbind need - "% op" bot:needopproc bot:needop {chan type} {   if {![channel get $chan botneeds]} return   putquick "opmode $chan +o $::botnick"}</code></pre></div>The need bind can be extended to fill the other needs too (join, limit, ban, key, etc.) if needed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jan 25, 2012 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2012-01-24T12:24:06-04:00</updated>

		<published>2012-01-24T12:24:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98611#p98611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98611#p98611"/>
		<title type="html"><![CDATA[When eggdrop has no op on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98611#p98611"><![CDATA[
I didn't bother with need-op because that wasn't what the user asked for. Also, it tends to flood services, most people add a "chanserv op" command to their bot, so anytime anyone deops the bot it will autoop again. This can cause issues, in a desync, with flooding, etc. My code triggers a single time, making sure that it doesn't attempt to op itself if already opped.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Tue Jan 24, 2012 12:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-01-21T10:58:40-04:00</updated>

		<published>2012-01-21T10:58:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98591#p98591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98591#p98591"/>
		<title type="html"><![CDATA[When eggdrop has no op on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98591#p98591"><![CDATA[
I had not considered that possibility.<br><br>But then something like this should do it:<br>.chanset * need-op "whatever commands you want go here"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Jan 21, 2012 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-01-21T04:26:35-04:00</updated>

		<published>2012-01-21T04:26:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98588#p98588</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98588#p98588"/>
		<title type="html"><![CDATA[When eggdrop has no op on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98588#p98588"><![CDATA[
Sure, but then if he has multiple channels would have to issue the same command for each channel. This ways is easier. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Jan 21, 2012 4:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-01-20T09:55:49-04:00</updated>

		<published>2012-01-20T09:55:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98583#p98583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98583#p98583"/>
		<title type="html"><![CDATA[When eggdrop has no op on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98583#p98583"><![CDATA[
<blockquote class="uncited"><div><br>...<br>Also, why not take advantage on the 'bind need' (again, a built-in function) <br>...</div></blockquote><br>Wouldn't this (built in) accomplish it too, and be the most simple?  :<br><a href="http://www.egghelp.org/commands/channels.htm#chaninfo" class="postlink">http://www.egghelp.org/commands/channels.htm#chaninfo</a><br>and see:<br>     need-op      tcl command to execute when the bot doesn't have ops<br><br><br>Thus something like:<br>.chanset #channel need-op "whatever commands you want go here"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Jan 20, 2012 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2012-01-20T06:25:01-04:00</updated>

		<published>2012-01-20T06:25:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98577#p98577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98577#p98577"/>
		<title type="html"><![CDATA[When eggdrop has no op on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98577#p98577"><![CDATA[
<blockquote class="uncited"><div>Why don't you use isbotnick (in all places) and botisop built-in functions? </div></blockquote>I was going to, and did use it (isbotnick) within the join procedure, but I got lazy. I'm self taught, mostly by reading other peoples code. I just do things the way I know works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Fri Jan 20, 2012 6:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-01-20T02:24:59-04:00</updated>

		<published>2012-01-20T02:24:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98576#p98576</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98576#p98576"/>
		<title type="html"><![CDATA[When eggdrop has no op on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98576#p98576"><![CDATA[
Why don't you use <em class="text-italics">isbotnick</em> (in all places) and <em class="text-italics">botisop</em> built-in functions?<br><br>Instead of:<div class="codebox"><p>Code: </p><pre><code>if {![isop $botnick $chan]} { </code></pre></div>would be:<div class="codebox"><p>Code: </p><pre><code>if {![botisop $chan]} { </code></pre></div>Also, why not take advantage on the 'bind need' (again, a built-in function) instead of that utimer (useless) check? Or you've could have used a <em class="text-italics">cron</em> bind instead of it too.<div class="codebox"><p>Code: </p><pre><code>bind need - "% op" bot:needopproc bot:needop {chan type} { putquick "opmode $chan +o $::botnick"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jan 20, 2012 2:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2012-01-19T11:54:13-04:00</updated>

		<published>2012-01-19T11:54:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98573#p98573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98573#p98573"/>
		<title type="html"><![CDATA[When eggdrop has no op on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98573#p98573"><![CDATA[
I didn't test this, but it sounds like something you want.<br><div class="codebox"><p>Code: </p><pre><code># Auto TCL - istok @ IRCSpeed.org# $Id: auto.tcl,v1 20/01/2012 04:37:42am GMT +12 (NZST) istok Exp $bind join - * join:opproc join:op {nick uhost hand chan} {  if {![isbotnick $nick]} {return}  utimer 5 check:status}proc check:status {} {  global botnick  foreach chan [channels] {    if {![isop $botnick $chan]} {    putquick "opmode $chan +o $botnick"  } }}bind mode - "-o" deop:checkproc deop:check {nick uhost hand chan mode {target ""}} {  global botnick  if {$botnick != $target} {return}  putquick "kill $nick :too lazy!"}putlog "Loaded: auto.tcl"</code></pre></div>Hope it works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Thu Jan 19, 2012 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dhalus]]></name></author>
		<updated>2012-01-10T00:38:46-04:00</updated>

		<published>2012-01-10T00:38:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98492#p98492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98492#p98492"/>
		<title type="html"><![CDATA[When eggdrop has no op on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98492#p98492"><![CDATA[
When eggdrop has no op on channel,to take op with command /opmode #channel +o nick.<br>I have a irc server, and i have an eggdrop caled help.. is the best eggdrop but is missing one of best part ... i wanna the eggdrop to take autoop on channel with oper,if some one try to deop him to give kill!! with command  /kill nick to lazy! to the client. thank you who can help me with tcl script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11879">dhalus</a> — Tue Jan 10, 2012 12:38 am</p><hr />
]]></content>
	</entry>
	</feed>
