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

	<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-12-08T13:01:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ViciousPiranha]]></name></author>
		<updated>2013-12-02T11:13:45-04:00</updated>

		<published>2013-12-02T11:13:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102265#p102265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102265#p102265"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102265#p102265"><![CDATA[
That works perfectly! Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12161">ViciousPiranha</a> — Mon Dec 02, 2013 11:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-12-08T13:01:46-04:00</updated>

		<published>2013-12-01T21:50:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102263#p102263</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102263#p102263"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102263#p102263"><![CDATA[
This one seems more done.<br><br>Adds a private message command to do the same thing.<br>Adds protection against starting more than 1 broadcast at a time.<br>Cleaned up the script replies some.<br>Gave the script a name and version number.<br><div class="codebox"><p>Code: </p><pre><code># broadcast.tcl ver 0.1 by SpiKe^^ | Based on a script by: caesar ## Script replies to !broadcast command in the channel &amp; in private message ## When using the private message command, &lt;channel&gt; is required ## set the number of messages to send at one time # set BroadCast(msgs) "4" # set how long to wait before sending more (in seconds) # set BroadCast(wait) "10" # change access flags &amp; triggers for public/message commands below #bind pub n !broadcast broadcast:buildQueue bind msg n !broadcast broadcast:mBuildQueue ############################# END OF SETTINGS #############################proc broadcast:mBuildQueue {nick uhost hand text} {    if {![string match #* $text] || [llength [split $text]]&lt;"2"} {       puthelp "NOTICE $nick :Error, syntax: !broadcast &lt;channel&gt; &lt;message&gt;"       return 0   }    broadcast:buildQueue $nick $uhost $hand [lindex [split $text] 0] $text   return 0} proc broadcast:buildQueue {nick uhost hand chan text} {    global BroadCast    if {[utimerexists broadcast:sendMessage] ne ""} {       puthelp "NOTICE $nick :Please wait, still working on last broadcast."       return 0   }    if {[string match #* $text]} {       set chan [lindex [split $text] 0]       if {![validchan $chan]} {          puthelp "NOTICE $nick :Error, $chan channel is not valid."          return 0      }       if {![botonchan $chan]} {          puthelp "NOTICE $nick :Error, I'm not on $chan channel right now."          return 0      }       set text [join [lrange [split $text] 1 end]]    }    set text [string trim $text]    if {$text eq ""} {       puthelp "NOTICE $nick :Error, syntax: !broadcast [channel] &lt;message&gt;"       return 0   }    set queue [lreplace [chanlist $chan] 0 0]    if {![llength $queue]} {       puthelp "NOTICE $nick :Error, No one in $chan channel right now."       return 0   }    puthelp "NOTICE $nick :Broadcasting message to everyone ([llength $queue] nicks in $chan). Please wait..."    foreach user [lrange $queue 0 [expr {$BroadCast(msgs)-2}]] {       puthelp "PRIVMSG $user :$text (via $nick)"    }    set queue [lrange $queue [expr {$BroadCast(msgs)-1}] end]    if {[llength $queue]} {       utimer $BroadCast(wait) [list broadcast:sendMessage $nick $queue $text]    } else {       puthelp "NOTICE $nick :Broadcast Message Completed."    }    return 0} proc broadcast:sendMessage {nick queue text} {    global BroadCast    foreach user [lrange $queue 0 [expr {$BroadCast(msgs)-1}]] {       puthelp "PRIVMSG $user :$text (via $nick)"    }    set queue [lrange $queue $BroadCast(msgs) end]    if {[llength $queue]} {       utimer $BroadCast(wait) [list broadcast:sendMessage $nick $queue $text]    } else {       puthelp "NOTICE $nick :Broadcast Message Completed."    } } putlog "broadcast.tcl ver 0.1 by SpiKe^^ loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 01, 2013 9:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-12-01T17:55:34-04:00</updated>

		<published>2013-12-01T17:55:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102261#p102261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102261#p102261"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102261#p102261"><![CDATA[
Done. try this...<br><div class="codebox"><p>Code: </p><pre><code># set the number of messages to send at one time # set BroadCast(msgs) "4" # set how long to wait before sending more (in seconds) # set BroadCast(wait) "10" bind pub n !broadcast broadcast:buildQueue proc broadcast:buildQueue {nick uhost hand chan text} {    global BroadCast    if {[string match #* $text]} {       set chan [lindex [split $text] 0]       if {![validchan $chan]} {          puthelp "NOTICE $nick :Error, $chan channel is not valid."          return       }       if {![botonchan $chan]} {          puthelp "NOTICE $nick :Error, I'm not on $chan channel right now."          return       }       set text [join [lrange [split $text] 1 end]]    }    set text [string trim $text]   if {$text eq ""} {       puthelp "NOTICE $nick :Error, syntax: !broadcast [channel] &lt;message&gt;"       return    }    set users [lreplace [chanlist $chan] 0 0]    if {![llength $users]} {       puthelp "NOTICE $nick :Error, No one in $chan channel right now."       return    }    puthelp "NOTICE $nick :Broadcasting message to everyone in $chan..."    foreach user [lrange $users 0 [expr {$BroadCast(msgs)-1}]] {       puthelp "PRIVMSG $user :$text (via $nick)"    }    set users [lrange $users $BroadCast(msgs) end]    if {[llength $users]} {      utimer $BroadCast(wait) [list broadcast:sendMessage $nick $users $text]    } else {      puthelp "NOTICE $nick :Broadcast Message Completed."    } }     proc broadcast:sendMessage {sender queue text} {    global BroadCast    foreach user [lrange $queue 0 [expr {$BroadCast(msgs)-1}]] {       puthelp "PRIVMSG $user :$text (via $sender)"    }    set queue [lrange $queue $BroadCast(msgs) end]    if {[llength $queue]} {      utimer $BroadCast(wait) [list broadcast:sendMessage $sender $queue $text]    } else {      puthelp "NOTICE $sender :Broadcast Message Completed."    } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 01, 2013 5:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ViciousPiranha]]></name></author>
		<updated>2013-12-01T17:35:46-04:00</updated>

		<published>2013-12-01T17:35:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102260#p102260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102260#p102260"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102260#p102260"><![CDATA[
That seems to work great Spike^^<br><br>Thank you very much.<br><br>I do not suppose you can add some sort of message to indicate that every message was sent out and the round was completed?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12161">ViciousPiranha</a> — Sun Dec 01, 2013 5:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-12-01T17:34:56-04:00</updated>

		<published>2013-12-01T17:34:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102259#p102259</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102259#p102259"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102259#p102259"><![CDATA[
I like this timer setup a whole lot better, it never has more than 1 utimer running at a time:)<br><div class="codebox"><p>Code: </p><pre><code># set the number of messages to send at one time # set BroadCast(msgs) "4" # set how long to wait before sending more (in seconds) # set BroadCast(wait) "10" bind pub n !broadcast broadcast:buildQueue proc broadcast:buildQueue {nick uhost hand chan text} {    global BroadCast    if {![llength [split $text]]} {       puthelp "NOTICE $chan :Error, syntax: !broadcast [channel] &lt;message&gt;"       return    }    if {[string equal -length 1 # $text]} {       set chan [lindex [split $text] 0]       if {![validchan $chan]} {          puthelp "NOTICE $chan :Error, $chan channel is not valid."          return       }       if {![botonchan $chan]} {          puthelp "NOTICE $chan :Error, I'm not on $chan channel right now."          return       }       set text [join [lrange [split $text] 1 end]]    }    set users [lreplace [chanlist $chan] 0 0]    if {![llength $users]} {       puthelp "NOTICE $nick :Error, No one in $chan channel right now."       return    }    foreach user [lrange $users 0 [expr {$BroadCast(msgs)-1}]] {       puthelp "PRIVMSG $user :$text (via $nick)"    }    set users [lrange $users $BroadCast(msgs) end]    if {[llength $users]} {      utimer $BroadCast(wait) [list broadcast:sendMessage $nick $users $text]    } }     proc broadcast:sendMessage {sender queue text} {    global BroadCast    foreach user [lrange $queue 0 [expr {$BroadCast(msgs)-1}]] {       puthelp "PRIVMSG $user :$text (via $sender)"    }    set queue [lrange $queue $BroadCast(msgs) end]    if {[llength $queue]} {      utimer $BroadCast(wait) [list broadcast:sendMessage $sender $queue $text]    } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 01, 2013 5:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-12-01T17:17:55-04:00</updated>

		<published>2013-12-01T17:17:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102258#p102258</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102258#p102258"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102258#p102258"><![CDATA[
Sorry, fixed that issue in the last posted script above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 01, 2013 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ViciousPiranha]]></name></author>
		<updated>2013-12-01T17:13:56-04:00</updated>

		<published>2013-12-01T17:13:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102257#p102257</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102257#p102257"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102257#p102257"><![CDATA[
2:13:30] Tcl error [broadcast:buildQueue]: wrong # args: should be "incr varName ?increment?"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12161">ViciousPiranha</a> — Sun Dec 01, 2013 5:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-12-01T17:20:06-04:00</updated>

		<published>2013-12-01T17:05:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102256#p102256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102256#p102256"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102256#p102256"><![CDATA[
That's just it's numbers of 5 sends every 10 seconds need a little tweeking.<br>Try playing with the new settings in this one...<br><div class="codebox"><p>Code: </p><pre><code># set the number of messages to send at one time #set BroadCast(msgs) "4"# set how long to wait before sending more (in seconds) #set BroadCast(wait) "10"bind pub n !broadcast broadcast:buildQueue proc broadcast:buildQueue {nick uhost hand chan text} {    global BroadCast   if {![llength [split $text]]} {       puthelp "NOTICE $chan :Error, syntax: !broadcast [channel] &lt;message&gt;"       return    }    if {[string equal -length 1 # $text]} {       set chan [lindex [split $text] 0]       if {![validchan $chan]} {          puthelp "NOTICE $chan :Error, $chan channel is not valid."          return       }       if {![botonchan $chan]} {          puthelp "NOTICE $chan :Error, I'm not on $chan channel right now."          return       }       set text [join [lrange [split $text] 1 end]]    }    set users [lreplace [chanlist $chan] 0 0]    if {![llength $users]} {       puthelp "NOTICE $nick :Error, No one in $chan channel right now."       return    }    set end [expr {$BroadCast(msgs)-1}]   broadcast:sendMessage $nick [lrange $users 0 $end] $text    set users [lrange $users $BroadCast(msgs) end]    set time 0    while {[llength $users] &gt; 0} {       incr time $BroadCast(wait)      utimer $time [list broadcast:sendMessage $nick [lrange $users 0 $end] $text]       set users [lrange $users $BroadCast(msgs) end]    } }     proc broadcast:sendMessage {sender queue text} {    foreach user [split $queue] {       puthelp "PRIVMSG $user :$text (via $sender)"    } } </code></pre></div>EDITED: FIXED: Tcl error [broadcast:buildQueue]: wrong # args: should be "incr varName ?increment?"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 01, 2013 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ViciousPiranha]]></name></author>
		<updated>2013-12-01T16:40:30-04:00</updated>

		<published>2013-12-01T16:40:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102255#p102255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102255#p102255"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102255#p102255"><![CDATA[
Excess Flood.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12161">ViciousPiranha</a> — Sun Dec 01, 2013 4:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-12-01T16:32:06-04:00</updated>

		<published>2013-12-01T16:32:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102254#p102254</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102254#p102254"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102254#p102254"><![CDATA[
How's that? Excess what?<br>Looks like it might take a long time to get it done, but that it would finish.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 01, 2013 4:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ViciousPiranha]]></name></author>
		<updated>2013-12-01T16:22:32-04:00</updated>

		<published>2013-12-01T16:22:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102253#p102253</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102253#p102253"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102253#p102253"><![CDATA[
Thanks Spike^^, it works now, although it quits due to Excess<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12161">ViciousPiranha</a> — Sun Dec 01, 2013 4:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-12-01T16:10:02-04:00</updated>

		<published>2013-12-01T16:10:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102252#p102252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102252#p102252"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102252#p102252"><![CDATA[
It was trying to increment a variable that doesn't exist:)<br>and a few other more minor issues. Try this...<br><div class="codebox"><p>Code: </p><pre><code>bind pub n !broadcast broadcast:buildQueue proc broadcast:buildQueue {nick uhost hand chan text} {    if {![llength [split $text]]} {       puthelp "NOTICE $chan :Error, syntax: !broadcast [channel] &lt;message&gt;"       return    }    if {[string equal -length 1 # $text]} {       set chan [lindex [split $text] 0]       if {![validchan $chan]} {          puthelp "NOTICE $chan :Error, $chan channel is not valid."          return       }       if {![botonchan $chan]} {          puthelp "NOTICE $chan :Error, I'm not on $chan channel right now."          return       }       set text [join [lrange [split $text] 1 end]]    }    set users [lreplace [chanlist $chan] 0 0]    if {![llength $users]} {       puthelp "NOTICE $nick :Error, No one in $chan channel right now."       return   }   broadcast:sendMessage $nick [lrange $users 0 4] $text   set users [lrange $users 5 end]   set time 0   while {[llength $users] &gt; 0} {       incr time 10       utimer $time [list broadcast:sendMessage $nick [lrange $users 0 4] $text]       set users [lrange $users 5 end]    } }     proc broadcast:sendMessage {sender queue text} {    foreach user [split $queue] {       puthelp "PRIVMSG $user :$text (via $sender)"    } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 01, 2013 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ViciousPiranha]]></name></author>
		<updated>2013-12-01T15:25:58-04:00</updated>

		<published>2013-12-01T15:25:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102251#p102251</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102251#p102251"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102251#p102251"><![CDATA[
<blockquote class="uncited"><div>Try this...<div class="codebox"><p>Code: </p><pre><code>bind pub n !broadcast broadcast:buildQueue proc broadcast:buildQueue {nick uhost hand chan text} {    if {![llength $text]} {       puthelp "NOTICE $chan :Error, syntax: !broadcast [channel] &lt;message&gt;"       return    }    if {[string equal -length 1 # $text]} {       set chan [lindex [split $text] 0]       if {![validchan $chan]} {          puthelp "NOTICE $chan :Error, $chan channel is not valid."          return       }       if {![botonchan $chan]} {          puthelp "NOTICE $chan :Error, I'm not on $chan channel right now."          return       }       set text [lrange $text 1 end]    }    set users [lreplace [chanlist $chan] 0 0]    while {[llength $users] != 0} {    incr time 10       utimer $time [list broadcast:sendMessage $nick [lrange $users 0 5] $text]       set users [lrange $users 6 end]    } }     proc broadcast:sendMessage {sender queue text} {    foreach user [split $queue] {       puthelp "PRIVMSG $user :$text (via $sender)"    } }</code></pre></div> You will need to make sure the broke bind is not still loaded, try restart.</div></blockquote>Hi Spike^^, after doing that I'm now getting this error:<br><br>[20:25:16] Tcl error [broadcast:buildQueue]: can't read "time": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12161">ViciousPiranha</a> — Sun Dec 01, 2013 3:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-12-01T15:13:47-04:00</updated>

		<published>2013-12-01T15:13:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102250#p102250</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102250#p102250"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102250#p102250"><![CDATA[
Try this...<div class="codebox"><p>Code: </p><pre><code>bind pub n !broadcast broadcast:buildQueue proc broadcast:buildQueue {nick uhost hand chan text} {    if {![llength $text]} {       puthelp "NOTICE $chan :Error, syntax: !broadcast [channel] &lt;message&gt;"       return    }    if {[string equal -length 1 # $text]} {       set chan [lindex [split $text] 0]       if {![validchan $chan]} {          puthelp "NOTICE $chan :Error, $chan channel is not valid."          return       }       if {![botonchan $chan]} {          puthelp "NOTICE $chan :Error, I'm not on $chan channel right now."          return       }       set text [lrange $text 1 end]    }    set users [lreplace [chanlist $chan] 0 0]    while {[llength $users] != 0} {    incr time 10       utimer $time [list broadcast:sendMessage $nick [lrange $users 0 5] $text]       set users [lrange $users 6 end]    } }     proc broadcast:sendMessage {sender queue text} {    foreach user [split $queue] {       puthelp "PRIVMSG $user :$text (via $sender)"    } }</code></pre></div> You will need to make sure the broke bind is not still loaded, try restart.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 01, 2013 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ViciousPiranha]]></name></author>
		<updated>2013-12-01T14:12:08-04:00</updated>

		<published>2013-12-01T14:12:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102249#p102249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102249#p102249"/>
		<title type="html"><![CDATA[Global Broadcast]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102249#p102249"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>[...]Here's one written how <em class="text-italics">caeser</em> suggested[...]</div></blockquote>see, you are no stranger to spelling names either. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>Anyway, here's my take on this.<div class="codebox"><p>Code: </p><pre><code>bind pub n !broadcast pub:buildQueueproc broadcast:buildQueue {nick uhost hand chan text} {if {![llength $text]} {puthelp "NOTICE $chan :Error, syntax: !broadcast [channel] &lt;message&gt;"return}if {[string equal -length 1 # $text]} {set chan [lindex [split $text] 0]if {![validchan $chan]} {puthelp "NOTICE $chan :Error, $chan channel is not valid."return}if {![botonchan $chan]} {puthelp "NOTICE $chan :Error, I'm not on $chan channel right now."return}set text [lrange $text 1 end]}set users [lreplace [chanlist $chan] 0 0]while {[llength $users] != 0} {incr time 10utimer $time [list broadcast:sendMessage $nick [lrange $users 0 5] $text]set users [lrange $users 6 end]}}proc broadcast:sendMessage {sender queue text} {foreach user [split $queue] {puthelp "PRIVMSG $user :$text (via $sender)"}}</code></pre></div>It will send 5 PM to the first 5 in the queue, then 10 seconds later to the next 5 and so on.<br><br>The !broadcast accepts a different channel than the one you issue the command, if a channel is not given will use the current one to make it's queue.<br><br>Haven't tested anything. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote><br>Hi, I'm getting this error:<br><br>[19:09:30] Tcl error [pub:buildQueue]: invalid command name "pub:buildQueue"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12161">ViciousPiranha</a> — Sun Dec 01, 2013 2:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
