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

	<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>2003-10-26T03:50:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[duofruo]]></name></author>
		<updated>2003-10-26T03:50:20-04:00</updated>

		<published>2003-10-26T03:50:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28982#p28982</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28982#p28982"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28982#p28982"><![CDATA[
That was a cool fraze, i will remember that <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=4023">duofruo</a> — Sun Oct 26, 2003 3:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-10-26T03:36:03-04:00</updated>

		<published>2003-10-26T03:36:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28981#p28981</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28981#p28981"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28981#p28981"><![CDATA[
It just felt like I was hacking and chomping through that tcl and I wasnt getting it right. <br><br>I kinda felt like I was beating my way through a jungle with an unsharpned Machette <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Oct 26, 2003 3:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-26T03:14:24-04:00</updated>

		<published>2003-10-26T03:14:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28976#p28976</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28976#p28976"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28976#p28976"><![CDATA[
<em class="text-italics">global bla ; putlog $bla</em> is the same thing as: <em class="text-italics">putlog $::bla</em><br>If in your proc, let's say this one:<div class="codebox"><p>Code: </p><pre><code>proc bla {} {global moo blaif {$moo = 2} { return }putlog $bla}</code></pre></div>the moo and the bla variables will be called and memored while something like:<div class="codebox"><p>Code: </p><pre><code>proc bla {} {if {$::moo = 2} { return }putlog $::bla}</code></pre></div>the moo and bla variables will be called only when needed. The difference betwen global and the use of $:: had been discussed before, If I recall corectly. No problem, I've had some bad days also, probably you are having one.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Oct 26, 2003 3:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-10-26T03:11:32-04:00</updated>

		<published>2003-10-26T03:11:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28975#p28975</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28975#p28975"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28975#p28975"><![CDATA[
I really do appreciate the help, im trying to learn Im not doing a bad job its kinda frustrating but hey, takes a lil bit of frustration to get it all down.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Oct 26, 2003 3:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-10-26T03:09:18-04:00</updated>

		<published>2003-10-26T03:09:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28973#p28973</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28973#p28973"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28973#p28973"><![CDATA[
I did go back and correct my proc I was just running into a problem of opping non ops. <br><br>So setting up a variable like I did with chanz ::chanz makes it so I it calls on the variable without needing a global line?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Oct 26, 2003 3:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-26T02:50:06-04:00</updated>

		<published>2003-10-26T02:50:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28968#p28968</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28968#p28968"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28968#p28968"><![CDATA[
Hints:<br>1. You can use <em class="text-italics"> [botonchan $chanz]</em> instead of <em class="text-italics">[onchan $botnick $chanz]</em>.<br>2. You have called globaly <em class="text-italics">botnet-nick</em> but you don't seem to be needing it there.<br>3. Call a global variable like <em class="text-italics">$::chanz</em> instead of calling it with <em class="text-italics">global chanz</em> line. This way the <em class="text-italics">chanz</em> variable is called when is needed not when the proc is beeing procesed.<br>4. Please be more careful with the procs, I mean read how many and what arguments they should have.<br>Instead of <blockquote class="uncited"><div>proc mass:op {nick idx host hand args} { </div></blockquote>should be:<blockquote class="uncited"><div>proc mass:op {hand idx args} {</div></blockquote>As for the code, try something like this:<div class="codebox"><p>Code: </p><pre><code>bind dcc nm|nm mop mass:op set chanz "#jjrd" proc mass:op {hand idx text} {   if {![botonchan $::chanz] || ![botisop $::chanz]} {    continue  }   foreach nick [chanlist $::chanz o|o] {     if {[isbotnick $nick] || [isop $nick $::chanz]} {      continue    }     pushmode $::chanz +o $nick  }} </code></pre></div>is working fine at me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Oct 26, 2003 2:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-10-26T02:22:08-04:00</updated>

		<published>2003-10-26T02:22:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28964#p28964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28964#p28964"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28964#p28964"><![CDATA[
Seems like this mass opped everyone which I dont want. hmm<br><br>I dont see where I went wrong so if anyone could point me in the right direction Id really appreciate it.<br><br>Thanks again for all the help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Oct 26, 2003 2:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-25T17:48:24-04:00</updated>

		<published>2003-10-25T17:48:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28954#p28954</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28954#p28954"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28954#p28954"><![CDATA[
I suppose you can use [chanlist $chans o|o] to get only +o users in $chanz.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Oct 25, 2003 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-10-25T16:47:54-04:00</updated>

		<published>2003-10-25T16:47:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28949#p28949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28949#p28949"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28949#p28949"><![CDATA[
Well this seems to work out well <br><div class="codebox"><p>Code: </p><pre><code>bind dcc nm|nm mop mass:opset chanz "#jjrd"proc mass:op {hand idx args} {global chanz botnick botnet-nickif {![onchan $botnick $chanz]} { continue }foreach nick [chanlist $chanz] {if {[isbotnick $nick] || [isop $nick $chanz] } { continue }if {[matchattr $hand +o] } { pushmode $chanz +o $nick }}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sat Oct 25, 2003 4:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-10-25T15:01:58-04:00</updated>

		<published>2003-10-25T15:01:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28948#p28948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28948#p28948"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28948#p28948"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc nm|nm mop mass:opset chanz "#jjrd"proc mass:op {nick idx host hand args} {global chanz botnick botnet-nickif {![onchan $botnick $chanz]} { continue }foreach nick [chanlist $chanz] {if {[isbotnick $nick] || [isop $nick $chanz] } { continue }if {[matchattr $handle +o] } { putmode +o $chanz $nick }}}</code></pre></div>I haven't tested it that was a first draft of something in my head just though id do it in this lil box but im sure you could hint me towards a better way to do this. Im kinda new to tcl so im trying to learn and accomplish my goal to finish this  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sat Oct 25, 2003 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-25T14:07:39-04:00</updated>

		<published>2003-10-25T14:07:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28938#p28938</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28938#p28938"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28938#p28938"><![CDATA[
Hint: <em class="text-italics">foreach</em> combined with <em class="text-italics">chanlist</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Oct 25, 2003 2:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-10-25T14:02:09-04:00</updated>

		<published>2003-10-25T14:02:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28936#p28936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28936#p28936"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28936#p28936"><![CDATA[
I dont want the channel +autoop, I want a tcl to mass op +o users via dcc command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sat Oct 25, 2003 2:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[duofruo]]></name></author>
		<updated>2003-10-25T13:45:24-04:00</updated>

		<published>2003-10-25T13:45:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28934#p28934</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28934#p28934"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28934#p28934"><![CDATA[
i didnt understand ur request but i supposed  the answer is <br>.chanset #channel +autoop ( this will op the persons whith +o flagwhen joining the channel)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4023">duofruo</a> — Sat Oct 25, 2003 1:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-10-25T13:38:33-04:00</updated>

		<published>2003-10-25T13:38:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28931#p28931</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28931#p28931"/>
		<title type="html"><![CDATA[Mass op +o via dcc command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28931#p28931"><![CDATA[
I want to throw together a tcl to mass op all +o users on $chan via dcc commands to op everyone not opped in #chan who's o|o.<br><br>What would be the best way to go about doing this? The channel I want this for is +bitch.<br><br>I'd rather get suggestions or snippets of code so I can actually put this together so please dont paste a fix just throw out ideas or snippets of what I should start off with and what not.<br><br>Thanks a lot for the help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sat Oct 25, 2003 1:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
