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

	<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>2006-05-17T02:03:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-05-16T16:48:18-04:00</updated>

		<published>2006-05-16T16:48:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63102#p63102</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63102#p63102"/>
		<title type="html"><![CDATA[Join chan, get op'd in diff chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63102#p63102"><![CDATA[
replace the proc header <div class="codebox"><p>Code: </p><pre><code>proc opCheck {nick host hand chan} {</code></pre></div> with <div class="codebox"><p>Code: </p><pre><code>proc opCheck {nick host hand chan mode victim} {</code></pre></div>you could also optimise the proc a little:<div class="codebox"><p>Code: </p><pre><code>bind mode - +o opCheck proc opCheck {nick host hand chan mode victim} {    if {[botisop #a] &amp;&amp; [onchan $victim #a]} {        if {[validchan #b] &amp;&amp; ![isop $victim #b]} {            puthelp "PRIVMSG #b :$victim got opped in #a and is not in this chan"            pushmode #a -o $victim            putkick #a $victim Permission denied!!        }    }}</code></pre></div>if i'm correct, you wouldn't need to check if #a is a valid chan.. if it isn't, then the bot wouldn't be opped in it, so the whole proc would not run<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Tue May 16, 2006 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[romprod]]></name></author>
		<updated>2006-05-16T16:17:23-04:00</updated>

		<published>2006-05-16T16:17:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63097#p63097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63097#p63097"/>
		<title type="html"><![CDATA[Join chan, get op'd in diff chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63097#p63097"><![CDATA[
Sorry, i know nothing about tcl, can you guys point out the changes i would have to make to the script. I had a quess as to what i would need to do but i'm obviously wrong.<br><br>thnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=223">romprod</a> — Tue May 16, 2006 4:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-05-17T02:03:52-04:00</updated>

		<published>2006-05-14T14:12:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63012#p63012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63012#p63012"/>
		<title type="html"><![CDATA[Join chan, get op'd in diff chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63012#p63012"><![CDATA[
<blockquote class="uncited"><div>         (14) MODE   (stackable)<br>         bind mode &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         proc-name &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;mode-change&gt; &lt;victim&gt;</div></blockquote>you lack two arguments in the proc. using the model above would fix your problem<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Sun May 14, 2006 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[romprod]]></name></author>
		<updated>2006-05-14T14:07:30-04:00</updated>

		<published>2006-05-14T14:07:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63011#p63011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63011#p63011"/>
		<title type="html"><![CDATA[Join chan, get op'd in diff chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63011#p63011"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind mode - *+o* opCheckproc opCheck {nick host hand chan} {  if { [validchan #a] &amp;&amp; [botisop #a] &amp;&amp; [validchan #b] &amp;&amp; [onchan $nick #a] } {    if {[isop $nick #b] == 0} {      putmsg #b "$nick is got opped in #a and is not in this chan"      pushmode #a -o $nick      putserv "kick #a $nick :Permission denied!!"    }   }}</code></pre></div>Can anybody see anything wrong with this? I get the following error message<br><br>Tcl error [opCheck]: wrong # args: should be "opCheck nick host hand chan"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=223">romprod</a> — Sun May 14, 2006 2:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[romprod]]></name></author>
		<updated>2006-05-13T17:31:21-04:00</updated>

		<published>2006-05-13T17:31:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62985#p62985</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62985#p62985"/>
		<title type="html"><![CDATA[Join chan, get op'd in diff chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62985#p62985"><![CDATA[
Thanks for that, works a treat. <br><br>Is it possible to make it check #b and if they're allready in that channel, op on join of #a?<br><br>Also if the user is not in #b it de-op's in #a if allready op'd?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=223">romprod</a> — Sat May 13, 2006 5:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avilon]]></name></author>
		<updated>2006-05-13T17:10:29-04:00</updated>

		<published>2006-05-13T17:10:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62983#p62983</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62983#p62983"/>
		<title type="html"><![CDATA[Join chan, get op'd in diff chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62983#p62983"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - "#b *" chanJoinproc chanJoin {nick host hand chan} {  if { [validchan #a] &amp;&amp; [botisop #a] &amp;&amp; [onchan $nick #a] } {    pushmode #a +o $nick  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5191">avilon</a> — Sat May 13, 2006 5:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[romprod]]></name></author>
		<updated>2006-05-13T16:55:10-04:00</updated>

		<published>2006-05-13T16:55:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62982#p62982</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62982#p62982"/>
		<title type="html"><![CDATA[Join chan, get op'd in diff chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62982#p62982"><![CDATA[
Hey guys, i'm looking for a script that will op an user in #a when they join #b automatically.<br><br>I've had a look around and chan't seem to find any, any help would be apreciated.<br><br>Thnks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=223">romprod</a> — Sat May 13, 2006 4:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
