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

	<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-04-12T09:04:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-12T09:04:42-04:00</updated>

		<published>2004-04-12T09:04:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35456#p35456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35456#p35456"/>
		<title type="html"><![CDATA[Putquick VS pushmode. REALLY A PROBLEM]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35456#p35456"><![CDATA[
I think i found a much faster way to mass mode a chan.<br>This is what i have and it is slow but it deops 6ppl every time.<br><div class="codebox"><p>Code: </p><pre><code>.......foreach user [chanlist $chan] {set hand [nick2hand $user $chan]if {![isop $user $chan] || [matchattr $hand n] || [matchattr $hand N] || [matchattr $hand m] || $user == $botnick || [onchansplit $user $chan]} {continue} pushmode $chan -o $user }}flushmode $chanreturn 1 }</code></pre></div>I modified it to this:<br><div class="codebox"><p>Code: </p><pre><code>foreach user [chanlist $chan] {set hand [nick2hand $user $chan]if {![isop $user $chan] || [matchattr $hand n] || [matchattr $hand N] || [matchattr $hand m] || $user == $botnick || [onchansplit $user $chan]} {continue} set what "MODE $chan -o-o-o-o-o-o $user $user $user $user $user $user \n"putdccraw 0 [string length $what] $what }}return 1 }</code></pre></div>This is a lot faster BUT it deops one person per time.<br>Is there a way to seperate the "users" in seperate args?<br>for ex.  "MODE $chan -o-o-o-o-o-o $user1 $user2 $user3 $user4 $user5 $user6 \n"<br><br>Of course what must be done is to write a code to see how much people will be deoped,<br>put each user in seperate arg [ex. $user1] and accordingly make the deop using putdccraw.<br>Is there a way to do 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=3555">CoMMy</a> — Mon Apr 12, 2004 9:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-29T19:32:23-04:00</updated>

		<published>2004-03-29T19:32:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35060#p35060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35060#p35060"/>
		<title type="html"><![CDATA[Putquick VS pushmode. REALLY A PROBLEM]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35060#p35060"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>putquick "MODE $chn -oooooo $user $user $user $user $user $user" -next </div></blockquote><div class="codebox"><p>Code: </p><pre><code>putquick "MODE $chn :-oooooo $user $user $user $user $user $user" -next </code></pre></div>if i remember well it requires ":" cause its raw data<br><div class="codebox"><p>Code: </p><pre><code>foreach {a b c d e f} $user {  putquick "MODE $chan :-oooooo $a $b $c $d $e $f" }</code></pre></div>you can't use $user cause its always the same var unless $user is the list, but if the list exseeds the number of modes only the number of modes will be deopped and not the entire list foreach will solve this for you like this u can make the list unlimited long, but u can only use as mutch modes as ur ircd supports type /version in order to see how many modes the server supports</div></blockquote>You remember incorrectly... channel modes (other than topic) do not require : , and will infact not work with it at all.<br><br>In any event, caesar's point about <strong class="text-strong">flushmode</strong>, commy, is probably the best solution to whatever you are trying to do.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Mar 29, 2004 7:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-29T18:50:18-04:00</updated>

		<published>2004-03-29T18:50:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35058#p35058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35058#p35058"/>
		<title type="html"><![CDATA[Putquick VS pushmode. REALLY A PROBLEM]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35058#p35058"><![CDATA[
<blockquote class="uncited"><div>putquick "MODE $chn -oooooo $user $user $user $user $user $user" -next </div></blockquote><div class="codebox"><p>Code: </p><pre><code>putquick "MODE $chn :-oooooo $user $user $user $user $user $user" -next </code></pre></div>if i remember well it requires ":" cause its raw data<br><div class="codebox"><p>Code: </p><pre><code>foreach {a b c d e f} $user {  putquick "MODE $chan :-oooooo $a $b $c $d $e $f" }</code></pre></div>you can't use $user cause its always the same var unless $user is the list, but if the list exseeds the number of modes only the number of modes will be deopped and not the entire list foreach will solve this for you like this u can make the list unlimited long, but u can only use as mutch modes as ur ircd supports type /version in order to see how many modes the server supports<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Mar 29, 2004 6:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2004-03-29T17:57:18-04:00</updated>

		<published>2004-03-29T17:57:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35056#p35056</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35056#p35056"/>
		<title type="html"><![CDATA[Putquick VS pushmode. REALLY A PROBLEM]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35056#p35056"><![CDATA[
What about this:<br>putquick "MODE $chn -oooooo $user $user $user $user $user $user" -next<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2661">cerberus_gr</a> — Mon Mar 29, 2004 5:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-03-29T13:11:29-04:00</updated>

		<published>2004-03-29T13:11:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35043#p35043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35043#p35043"/>
		<title type="html"><![CDATA[Putquick VS pushmode. REALLY A PROBLEM]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35043#p35043"><![CDATA[
According to tcl-commands.doc file about "pushmode"..<blockquote class="uncited"><div>All the mode changes will<br>      be sent out at once (combined into one line as much as possible) after<br>      the script finishes, or when 'flushmode' is called.</div></blockquote>and about the "putquick"<blockquote class="uncited"><div>sends text to the server, like 'putserv', but it uses a<br>      different (and faster) queue.</div></blockquote>so.. if you want to make it do stuff faster either figure out by yourself how to do that "(combined into one line as much as possible)" thing like in pushmode or use the normal and "slow way" of "pushmode"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Mar 29, 2004 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-03-29T08:42:13-04:00</updated>

		<published>2004-03-29T08:42:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35036#p35036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35036#p35036"/>
		<title type="html"><![CDATA[Putquick VS pushmode. REALLY A PROBLEM]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35036#p35036"><![CDATA[
Hey guys, I really some assistance on this! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>I have a pushmode command in a proc which works fine.<div class="codebox"><p>Code: </p><pre><code>pushmode $chn -o $user</code></pre></div>The pushmode results are:<div class="codebox"><p>Code: </p><pre><code>(15:26) * EggDrop sets mode: -oooooo user user user user user user(15:26) * EggDrop sets mode: -oooooo user user user user user user(15:26) * EggDrop sets mode: -oooooo user user user user user user</code></pre></div>But pushmode is slow and i want the command to be carried out fast. So i tried<br>the following.<div class="codebox"><p>Code: </p><pre><code>putquick "MODE $chn -o $user" -next</code></pre></div>This also works but with these as results:<div class="codebox"><p>Code: </p><pre><code>(15:30) * EggDrop sets mode: -o user (15:30) * EggDrop sets mode: -o user (15:30) * EggDrop sets mode: -o user (15:30) * EggDrop sets mode: -o user (15:30) * EggDrop sets mode: -o user </code></pre></div>Is there a way to use putquick and make the bot perform the command <br>like in the pushmode results?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Mon Mar 29, 2004 8:42 am</p><hr />
]]></content>
	</entry>
	</feed>
