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

	<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-06-03T09:38:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-06-02T19:35:59-04:00</updated>

		<published>2004-06-02T19:35:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36884#p36884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36884#p36884"/>
		<title type="html"><![CDATA[How to msg a $list ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36884#p36884"><![CDATA[
either way, redundant to loop twice...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Jun 02, 2004 7:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[puffi]]></name></author>
		<updated>2004-06-02T12:14:13-04:00</updated>

		<published>2004-06-02T12:14:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36872#p36872</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36872#p36872"/>
		<title type="html"><![CDATA[How to msg a $list ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36872#p36872"><![CDATA[
Further on $list is a string, as he uses append and not lappend  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> So splitting a string is quite ok with me  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4998">puffi</a> — Wed Jun 02, 2004 12:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-02T12:10:29-04:00</updated>

		<published>2004-06-02T12:10:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36871#p36871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36871#p36871"/>
		<title type="html"><![CDATA[How to msg a $list ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36871#p36871"><![CDATA[
you still have to split it up somehow , or it will just spit out the entire list on the first time in that foreach<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Wed Jun 02, 2004 12:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-06-03T09:38:41-04:00</updated>

		<published>2004-06-02T09:15:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36856#p36856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36856#p36856"/>
		<title type="html"><![CDATA[How to msg a $list ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36856#p36856"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>foreach admin $list {   putserv "PRIVMSG $admin : $nick called for an admin!"}</code></pre></div>You might have to split up the list using 'split' (doh)  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"></div></blockquote>Split a list? Split is for making lists out of strings...<br><br>[edit]typo, if =&gt; is[/edit]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Wed Jun 02, 2004 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-06-01T16:07:58-04:00</updated>

		<published>2004-06-01T16:07:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36831#p36831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36831#p36831"/>
		<title type="html"><![CDATA[How to msg a $list ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36831#p36831"><![CDATA[
or instead, after your "isop" test, put the line:<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $user :$nick is requesting an admin"</code></pre></div>Would be more efficient than looping twice...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Jun 01, 2004 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-06-01T15:20:12-04:00</updated>

		<published>2004-06-01T15:20:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36825#p36825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36825#p36825"/>
		<title type="html"><![CDATA[How to msg a $list ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36825#p36825"><![CDATA[
Also, you should check <a href="http://tmml.sourceforge.net/doc/tcl/" class="postlink">The Manual</a> for the difference between append and lappend.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 01, 2004 3:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-01T15:13:31-04:00</updated>

		<published>2004-06-01T15:13:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36824#p36824</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36824#p36824"/>
		<title type="html"><![CDATA[How to msg a $list ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36824#p36824"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach admin $list {   putserv "PRIVMSG $admin : $nick called for an admin!"}</code></pre></div>You might have to split up the list using 'split' (doh)  <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=24">greenbear</a> — Tue Jun 01, 2004 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Real]]></name></author>
		<updated>2004-06-01T14:57:57-04:00</updated>

		<published>2004-06-01T14:57:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36823#p36823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36823#p36823"/>
		<title type="html"><![CDATA[How to msg a $list ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36823#p36823"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pub_admin {nick host hand chan arg} {     foreach user [chanlist $chan] {       if {[isop $user $chan]} {         if {[info exists list]} {           append list " $user"         } else {           set list "$user"         }               }     }     putserv "PRIVMSG $chan : $list, $nick called for an admin!"   } </code></pre></div>Hi, this is the current code I have. <br>This lets anyone use !admin, so that everybody with op will get higlighted in the channel. (every op-nick is stored in $list )<br><br>But my problem is, is there also a way to send everyone a pm, instead of a channel higlight?<br>So everyone who is in $list, should receive a privmsg, is this possible? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Lots of thanks if you can help me here <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=4669">Real</a> — Tue Jun 01, 2004 2:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
