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

	<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>2009-12-29T03:49:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sbarkeri]]></name></author>
		<updated>2009-12-25T12:17:42-04:00</updated>

		<published>2009-12-25T12:17:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91438#p91438</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91438#p91438"/>
		<title type="html"><![CDATA[Auto Op + Invite Problem - SOLVED]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91438#p91438"><![CDATA[
<blockquote class="uncited"><div>I`ve tried this seems to  work fine for me i`ve just removed <br><div class="codebox"><p>Code: </p><pre><code>putlog "loaded invite2.tcl" return</code></pre></div>and placed it in an existing tcl script</div></blockquote>Thanks, worked a treat when I removed the putlog... etc.  <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=10803">Sbarkeri</a> — Fri Dec 25, 2009 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-25T10:36:00-04:00</updated>

		<published>2009-12-25T10:36:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91437#p91437</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91437#p91437"/>
		<title type="html"><![CDATA[Auto Op + Invite Problem - SOLVED]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91437#p91437"><![CDATA[
I`ve tried this seems to  work fine for me i`ve just removed <br><div class="codebox"><p>Code: </p><pre><code>putlog "loaded invite2.tcl" return</code></pre></div>and placed it in an existing tcl script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Fri Dec 25, 2009 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sbarkeri]]></name></author>
		<updated>2009-12-25T00:09:13-04:00</updated>

		<published>2009-12-25T00:09:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91433#p91433</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91433#p91433"/>
		<title type="html"><![CDATA[Auto Op + Invite Problem - SOLVED]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91433#p91433"><![CDATA[
<blockquote class="uncited"><div>This allows anyone as long as they are a valid user ("in" eggdrop's userfile) to use /msg &lt;botnick&gt; invite &lt;#channel&gt;<br><div class="codebox"><p>Code: </p><pre><code> catch {unbind msg o|o invite *msg:invite} bind msg -|- invite msg:invite2 proc msg:invite2 {nick host hand text} {  if {([validuser $hand]) &amp;&amp; (![matchattr $hand +kdrq])} {   if {[llength [split $text]] != 0} {    set chan [lindex [split $text] 0]     if {([validchan $chan]) &amp;&amp; ([botonchan $chan]) &amp;&amp; (![matchattr $hand |+kdrq $chan]) &amp;&amp; (![onchan $nick $chan])} {      putserv "INVITE $nick $chan"      return 1     }   }  } } putlog "loaded invite2.tcl" return</code></pre></div> It also checks for bad flags like +k (auto-kick) and +d (auto-deop) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> so it wont allow people that are banned to invite them selfs in to the channel.</div></blockquote>Just tried to use that script however I kept getting this error in the telnet<br><div class="codebox"><p>Code: </p><pre><code>[04:05] Tcl error [msg:invite2]: wrong # args: should be "matchattr handle flags                    ?channel?"</code></pre></div>Any idea?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10803">Sbarkeri</a> — Fri Dec 25, 2009 12:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-12-24T15:01:44-04:00</updated>

		<published>2009-12-24T15:01:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91432#p91432</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91432#p91432"/>
		<title type="html"><![CDATA[Auto Op + Invite Problem - SOLVED]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91432#p91432"><![CDATA[
This allows anyone as long as they are a valid user ("in" eggdrop's userfile) to use /msg &lt;botnick&gt; invite &lt;#channel&gt;<br><div class="codebox"><p>Code: </p><pre><code> catch {unbind msg o|o invite *msg:invite} bind msg -|- invite msg:invite2 proc msg:invite2 {nick host hand text} {  if {([validuser $hand]) &amp;&amp; (![matchattr $hand +kdrq])} {   if {[llength [split $text]] != 0} {    set chan [lindex [split $text] 0]     if {([validchan $chan]) &amp;&amp; ([botonchan $chan]) &amp;&amp; (![matchattr $hand |+kdrq $chan]) &amp;&amp; (![onchan $nick $chan])} {      putserv "INVITE $nick $chan"      return 1     }   }  } } putlog "loaded invite2.tcl" return</code></pre></div> It also checks for bad flags like +k (auto-kick) and +d (auto-deop) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> so it wont allow people that are banned to invite them selfs in to the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Dec 24, 2009 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-24T08:06:41-04:00</updated>

		<published>2009-12-24T08:06:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91427#p91427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91427#p91427"/>
		<title type="html"><![CDATA[Re: Auto Op + Invite Problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91427#p91427"><![CDATA[
<blockquote class="uncited"><div>Hi,<br><br>I recently setup my channel so that all the Ops have a user on my eggdrop and all have the flags +ao with a select few having +m too. However the problem is that once an op gets deoped by another op the bot will not give him the op back unless he parts the channel. Is there anyway that the bot will instantly give the user the op back as soon as someone takes it away, the only way I want someone to lose op is if I or another master removes it via the partyline.<br><br>Also another little issue, to get invited to a channel I have to type <div class="codebox"><p>Code: </p><pre><code>/msg BOT INVITE PASSWORD #CHANNEL</code></pre></div>However I want the bot to auto recognise the user by their hostname so that they do not have to enter a password, for example<div class="codebox"><p>Code: </p><pre><code>/MSG BOT INVITE #CHANNEL</code></pre></div>Thanks in advance,<br>Steve<br><br>P.S. What is the minimum flag required for a user to use INVITE, I know for the QuakeNet for it was +k (known) however that does not exist on eggdrop so it leaves me a little confused.</div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind msg ao|ao opme cmd:opmebind msg ao|ao invite cmd:inviteproc cmd:opme {nick uhost hand arg} {   set chan [lrange [split $arg] 1 end]    putserv "mode $chan +o $nick"  } proc cmd:invite {nick uhost hand arg} {  set chan [lindex [split $arg] 0]    set username [lrange [split $arg] 1 end]    putserv "INVITE $chan $username"} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Thu Dec 24, 2009 8:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sbarkeri]]></name></author>
		<updated>2009-12-29T03:49:33-04:00</updated>

		<published>2009-12-24T00:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91426#p91426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91426#p91426"/>
		<title type="html"><![CDATA[Auto Op + Invite Problem - SOLVED]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91426#p91426"><![CDATA[
Hi,<br><br>I recently setup my channel so that all the Ops have a user on my eggdrop and all have the flags +ao with a select few having +m too. However the problem is that once an op gets deoped by another op the bot will not give him the op back unless he parts the channel. Is there anyway that the bot will instantly give the user the op back as soon as someone takes it away, the only way I want someone to lose op is if I or another master removes it via the partyline.<br><br>Also another little issue, to get invited to a channel I have to type <div class="codebox"><p>Code: </p><pre><code>/msg BOT INVITE PASSWORD #CHANNEL</code></pre></div>However I want the bot to auto recognise the user by their hostname so that they do not have to enter a password, for example<div class="codebox"><p>Code: </p><pre><code>/MSG BOT INVITE #CHANNEL</code></pre></div>Thanks in advance,<br>Steve<br><br>P.S. What is the minimum flag required for a user to use INVITE, I know for the QuakeNet for it was +k (known) however that does not exist on eggdrop so it leaves me a little confused.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10803">Sbarkeri</a> — Thu Dec 24, 2009 12:13 am</p><hr />
]]></content>
	</entry>
	</feed>
