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

	<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>2006-05-31T11:30:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-05-31T11:30:41-04:00</updated>

		<published>2006-05-31T11:30:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63586#p63586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63586#p63586"/>
		<title type="html"><![CDATA[Help with this array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63586#p63586"><![CDATA[
Thank you very much. Now it works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Wed May 31, 2006 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-05-30T16:41:48-04:00</updated>

		<published>2006-05-30T16:41:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63573#p63573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63573#p63573"/>
		<title type="html"><![CDATA[Help with this array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63573#p63573"><![CDATA[
Aghh! Forgot an $, sorry. Copy again the code, I've fixed it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue May 30, 2006 4:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-05-30T16:34:07-04:00</updated>

		<published>2006-05-30T16:34:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63571#p63571</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63571#p63571"/>
		<title type="html"><![CDATA[Help with this array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63571#p63571"><![CDATA[
No, there must be something wrong. My bot writes "The following mods are online on IRC: mod(#channel)".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Tue May 30, 2006 4:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-05-30T16:42:09-04:00</updated>

		<published>2006-05-30T12:14:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63560#p63560</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63560#p63560"/>
		<title type="html"><![CDATA[Help with this array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63560#p63560"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set modnames { "nick1""nick2" "nick3"}bind pub - !mods mods proc mods {nick uhost hand chan txt} {  global modnames  foreach user $modnames {     if {![onchan $user $chan]} continue        lappend mod($chan) $user  }  if {[info exists mod($chan)]} {    putquick "PRIVMSG $chan :The following mods are online an IRC: $mod($chan)"    } else {    putquick "PRIVMSG $chan :Nobody is online"  }}</code></pre></div>Should do.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue May 30, 2006 12:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-05-29T15:22:58-04:00</updated>

		<published>2006-05-29T15:22:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63532#p63532</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63532#p63532"/>
		<title type="html"><![CDATA[Help with this array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63532#p63532"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !mods modsproc mods {nick uhost hand chan arg} {array set modnames { nick1 nick2 nick3} foreach {mod} [array get modnames] {   if {[onchan $mod $chan]} {       putquick "PRIVMSG $chan :The following mods are online at IRC: $mod"     } }}</code></pre></div>I have already begun with making this script. There is only one problem. With this script I made, the bot writes the following:<blockquote class="uncited"><div>The following mods are online at IRC: nick1<br>The following mods are online at IRC: nick2</div></blockquote>But it should write these nicks in just one line like this: "The following mods are online at IRC: nick1, nick2"<br>What do I have to change so that a new line is not made each time?<br>And the second problem is that I dont know what I must add that my bot writes "Nobody is online" when there is no user at IRC. Please help me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Mon May 29, 2006 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-05-30T09:11:49-04:00</updated>

		<published>2006-05-29T06:40:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63523#p63523</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63523#p63523"/>
		<title type="html"><![CDATA[Help with this array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63523#p63523"><![CDATA[
Hello!<br>I need a script which can do the following:<br>With a command e.g. !mods I want to check the online status of saved nicks. Maybe it is possible to save these nicks in an array(?). Then my eggdrop should write "Online: nick1, nick2, nick3" or "nobody is online".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Mon May 29, 2006 6:40 am</p><hr />
]]></content>
	</entry>
	</feed>
