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

	<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>2013-01-25T02:30:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-01-25T02:23:22-04:00</updated>

		<published>2013-01-25T02:23:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100759#p100759</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100759#p100759"/>
		<title type="html"><![CDATA[Mass OP using X]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100759#p100759"><![CDATA[
True, it starts the counting from 0 so it would be 16 nicks per line. But there's no need to add an <em class="text-italics">expr</em> just cos the user can't change from 15 to 14 or whatever count he wishes to have per line. But for lazy people that would do fine. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jan 25, 2013 2:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-01-24T15:41:51-04:00</updated>

		<published>2013-01-24T15:41:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100751#p100751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100751#p100751"/>
		<title type="html"><![CDATA[Mass OP using X]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100751#p100751"><![CDATA[
Though I would never recommend using chanserv for any kind of mass commands, thought I might clear up some minor issues in the above code...<br><br>caesar wrote:<div class="codebox"><p>Code: </p><pre><code>      while {[llength $oplist] != 0} {          puthelp "PRIVMSG $X :[join [lrange $oplist 0 15]]"          set oplist [lrange $oplist 15 end]       } </code></pre></div>I would suggest something more like this...<div class="codebox"><p>Code: </p><pre><code>      set howmany 15      while {[llength $oplist] != 0} {          puthelp "PRIVMSG X :op $chan [join [lrange $oplist 0 [expr {$howmany-1}]]]"          set oplist [lrange $oplist $howmany end]       } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Jan 24, 2013 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-01-24T15:11:49-04:00</updated>

		<published>2013-01-24T15:11:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100750#p100750</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100750#p100750"/>
		<title type="html"><![CDATA[Mass OP using X]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100750#p100750"><![CDATA[
I guess you missed the part where I said 15 nicks per line. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jan 24, 2013 3:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2013-01-24T10:08:25-04:00</updated>

		<published>2013-01-24T10:08:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100747#p100747</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100747#p100747"/>
		<title type="html"><![CDATA[Mass OP using X]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100747#p100747"><![CDATA[
Using services can tend to flood them, causing the bot to either be killed or even excess flood offline.<br>A better way would be using a script like <a href="http://www.hawkee.com/snippet/3983/" class="postlink">this</a> - a mass.tcl that you can configure.<br><br>Let us know if this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Thu Jan 24, 2013 10:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-01-25T02:30:56-04:00</updated>

		<published>2013-01-24T10:01:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100746#p100746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100746#p100746"/>
		<title type="html"><![CDATA[Mass OP using X]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100746#p100746"><![CDATA[
Here's a better version.<br><br>!xop with no arguments will tell X to op you if needed<br>!xop nick_1 nick_2 nick_3 and so on. will tell X to op the users that don't have op from the list you gave<br>!xop * - will tell X to op every user in the channel if doesn't have op<div class="codebox"><p>Code: </p><pre><code>bind pub o !xop pub:xopproc pub:xop {nick uhost hand chan text} { if {![onchan X $chan]} {puthelp "PRIVMSG $chan :I don't see X on this channel, do you?"return}if {![string length $text]} {if {![isop $nick $chan]} {puthelp "PRIVMSG X :op $chan $nick"} else {puthelp "PRIVMSG $chan :You already have op."}} else {if {[string equal -length 1 "*" [lindex [split $text] 0]]} {foreach user [chanlist $chan] {if {![isop $user $chan]} {lappend oplist $user}}} else {foreach user [split $text] {if {![isop $user $chan]} {lappend oplist $user}}}while {[llength $oplist] != 0} {puthelp "PRIVMSG $X :[join [lrange $oplist 0 14]]"set oplist [lrange $oplist 15 end]}}}</code></pre></div>Don't know how many nicks you can send to a line so adjust <strong class="text-strong">15</strong> to a proper limit. Haven't tested anything, just in my head. Reply back if you have any troubles with it.<br><br>Edit: Fixed. If you wish to have let's say 10 nicks per line change 14 with 9 and 15 with 10.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jan 24, 2013 10:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-24T14:10:10-04:00</updated>

		<published>2013-01-24T08:29:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100744#p100744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100744#p100744"/>
		<title type="html"><![CDATA[Mass OP using X]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100744#p100744"><![CDATA[
!xop * = for opping everyone in the channel through X (everyone that doesnt have @ in the channel)<br>!xop = will @ you (if you dont have @)<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !xop pub:xopproc pub:xop {nick uhost hand chan arg} {set who [lindex [split $arg] 0]if {$who == "*"} {foreach n [chanlist $chan] {if {![isop $n $chan]} {putserv "PRIVMSG X :op $chan $n"}}} else {if {![isop $nick $chan]} {putserv "PRIVMSG X :op $chan $nick"} else {                        putserv "PRIVMSG $chan :You are already @"                }}}</code></pre></div>Didnt test. If you encouter errors i will test it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Thu Jan 24, 2013 8:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juan]]></name></author>
		<updated>2012-05-26T06:13:02-04:00</updated>

		<published>2012-05-26T06:13:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99462#p99462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99462#p99462"/>
		<title type="html"><![CDATA[Mass OP using X]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99462#p99462"><![CDATA[
Hi is there anyone who can share their script with mass OP using through X of undernet? Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12002">juan</a> — Sat May 26, 2012 6:13 am</p><hr />
]]></content>
	</entry>
	</feed>
