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

	<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>2003-08-22T02:59:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-08-22T02:59:00-04:00</updated>

		<published>2003-08-22T02:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25454#p25454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25454#p25454"/>
		<title type="html"><![CDATA[some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25454#p25454"><![CDATA[
Oke tnx again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Fri Aug 22, 2003 2:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-21T15:47:42-04:00</updated>

		<published>2003-08-21T15:47:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25433#p25433</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25433#p25433"/>
		<title type="html"><![CDATA[some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25433#p25433"><![CDATA[
<blockquote class="uncited"><div>problem is still the formating.</div></blockquote>The problem is your fixed spacing of the nick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 21, 2003 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-08-21T12:54:10-04:00</updated>

		<published>2003-08-21T12:54:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25425#p25425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25425#p25425"/>
		<title type="html"><![CDATA[some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25425#p25425"><![CDATA[
<strong class="text-strong">script</strong><br><blockquote class="uncited"><div>putidx $idx "                   \002 Botcrew :  \002"<br>putidx $idx " "<br>putidx $idx " \002Owner\002"<br>foreach i [userlist +n] {<br>putidx $idx "  $i            [format "%15s %45s " [getuser $i XTRA IRL] [getuser $i XTRA EMAIL]]"<br>}<br>putidx $idx "  "<br>putidx $idx " \002Masters\002 "<br>foreach i [userlist +m-n] {<br>putidx $idx "  $i            [format "%15s %45s " [getuser $i XTRA IRL] [getuser $i XTRA EMAIL]]"<br>}<br>}</div></blockquote><br>output you can see @<br><a href="http://bobjuh.daro.info/files/script.txt" class="postlink">http://bobjuh.daro.info/files/script.txt</a><br><br>problem is still the formating.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Thu Aug 21, 2003 12:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-08-08T06:02:25-04:00</updated>

		<published>2003-08-08T06:02:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24566#p24566</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24566#p24566"/>
		<title type="html"><![CDATA[some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24566#p24566"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>format "%9s %.3s %-4s %s" a bbbb c dreturns '        a bbb c    d'</code></pre></div>Read <a href="http://tcl.tk/man/tcl8.3/TclCmd/format.htm" class="postlink">http://tcl.tk/man/tcl8.3/TclCmd/format.htm</a> for details.</div></blockquote>hmz yes :/<br>i was thinking a mutch harder solution silly me <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=109">bobjuh</a> — Fri Aug 08, 2003 6:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-07T17:59:49-04:00</updated>

		<published>2003-08-07T17:59:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24548#p24548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24548#p24548"/>
		<title type="html"><![CDATA[some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24548#p24548"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>format "%9s %.3s %-4s %s" a bbbb c dreturns '        a bbb c    d'</code></pre></div>Read <a href="http://tcl.tk/man/tcl8.3/TclCmd/format.htm" class="postlink">http://tcl.tk/man/tcl8.3/TclCmd/format.htm</a> for details.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 07, 2003 5:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-08-08T03:03:12-04:00</updated>

		<published>2003-08-07T17:37:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24546#p24546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24546#p24546"/>
		<title type="html"><![CDATA[some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24546#p24546"><![CDATA[
Oke this is what i got so far<br><blockquote class="uncited"><div>proc dcc:test {hand idx arg} {<br>putidx $idx " \002Owner\002 "<br>foreach i [userlist +n] {<br>putidx $idx "  $i            [getuser $i XTRA IRL]          [getuser $i XTRA EMAIL] [getuser $i XTRA LASTON]"<br>}<br>putidx $idx "  "<br>putidx $idx " \002Masters\002 "<br>foreach i [userlist +m-n] {<br>putidx $idx "  $i            [getuser $i XTRA IRL]          [getuser $i XTRA EMAIL] [getuser $i XTRA LASTON]"<br>}<br>}</div></blockquote>Now the problem is that because the handle (also the irl fields) aren't al the same lenght the you get this.<br><br>Owner <br>test            <a href="mailto:mail@my-isp.com">mail@my-isp.com</a>          <a href="mailto:mailadres@isp.tld">mailadres@isp.tld</a><br>BoBjUh            Ronald          <a href="mailto:bobjuh@name.isp">bobjuh@name.isp</a><br><br>How can i fix this.<br>i searched i think it has something to to with string and lenght but i don't know how to do this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Thu Aug 07, 2003 5:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-28T08:12:32-04:00</updated>

		<published>2003-07-28T08:12:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24088#p24088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24088#p24088"/>
		<title type="html"><![CDATA[Re: some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24088#p24088"><![CDATA[
<blockquote class="uncited"><div>Can you give me a clue how to code this ?</div></blockquote>I'm tired of giving you clues. Here's some working code:<div class="codebox"><p>Code: </p><pre><code>proc ismodule {name} {foreach m [modules] {if {[string eq $name [lindex $m 0]]} {return 1}}return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Jul 28, 2003 8:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-07-28T04:30:51-04:00</updated>

		<published>2003-07-28T04:30:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24076#p24076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24076#p24076"/>
		<title type="html"><![CDATA[Re: some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24076#p24076"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>how do i do this ?</div></blockquote>loop through the list returned by 'modules' or use 'info commands &lt;command name&gt;'</div></blockquote>Can you give me a clue how to code this ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Mon Jul 28, 2003 4:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-27T12:31:26-04:00</updated>

		<published>2003-07-27T12:31:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24040#p24040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24040#p24040"/>
		<title type="html"><![CDATA[Re: some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24040#p24040"><![CDATA[
<blockquote class="uncited"><div>how do i do this ?</div></blockquote>loop through the list returned by 'modules' or use 'info commands &lt;command name&gt;'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Jul 27, 2003 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-07-27T11:49:26-04:00</updated>

		<published>2003-07-27T11:49:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24032#p24032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24032#p24032"/>
		<title type="html"><![CDATA[Re: some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24032#p24032"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>I need an if statement or something to see if a module is loaded</div></blockquote>There's at least two ways to do this.<br>1) check the list of modules returned by 'modules'.<br>2) check for the existence of a command provided by that module ('info commands cmdname')</div></blockquote>how do i do this ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Sun Jul 27, 2003 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-21T10:01:57-04:00</updated>

		<published>2003-07-21T10:01:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23746#p23746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23746#p23746"/>
		<title type="html"><![CDATA[Re: some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23746#p23746"><![CDATA[
<blockquote class="uncited"><div>I need an if statement or something to see if a module is loaded</div></blockquote>There's at least two ways to do this.<br>1) check the list of modules returned by 'modules'.<br>2) check for the existence of a command provided by that module ('info commands cmdname')<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Jul 21, 2003 10:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-07-21T03:45:23-04:00</updated>

		<published>2003-07-21T03:45:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23734#p23734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23734#p23734"/>
		<title type="html"><![CDATA[Re: some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23734#p23734"><![CDATA[
Oke thats work.<br><br>next problem.<br>I need an if statement or something to see if a module is loaded<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Mon Jul 21, 2003 3:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-20T11:57:47-04:00</updated>

		<published>2003-07-20T11:57:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23710#p23710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23710#p23710"/>
		<title type="html"><![CDATA[Re: some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23710#p23710"><![CDATA[
Replace the current line writing the host with:<br><div class="codebox"><p>Code: </p><pre><code>foreach host $addhosts {  puts $io "--HOSTS $host"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Jul 20, 2003 11:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-07-20T05:00:21-04:00</updated>

		<published>2003-07-20T05:00:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23695#p23695</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23695#p23695"/>
		<title type="html"><![CDATA[some help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23695#p23695"><![CDATA[
Oke i'm sorta rebuilding my eggdrop config to make it easy to configure.<br>I now want to build something in that it there is no userfile he will make it itself withe the botadmin in it.<br><br>This is what i have added var with  admin name en host.<br><blockquote class="uncited"><div><br>set botadmin "BoBjUh"<br>set adminmail "<a href="mailto:bobjuh@linux-nl.org">bobjuh@linux-nl.org</a>"<br>set addhosts {<br>    *!*<a href="mailto:ident@host1.isp.tcl">ident@host1.isp.tcl</a><br>    *!*<a href="mailto:ident@host1.isp.tcl">ident@host1.isp.tcl</a><br>}<br></div></blockquote>With that var the idea is dat you can add as many host as possible. <br>Now the problem is to add this to the userfile.<br><blockquote class="uncited"><div>if {![file exists ${username}.user]} then {<br>close [open ${username}.user w]<br>  set io [open ${username}.user a]<br>   puts $io "#4v: eggdrop v1.6.12 -- Eggdrop -- written Mon Jan 1 00:00:00 2003"<br>    puts $io "$botadmin    - jmnoptx                "<br>    puts $io "--PASS +password"<br>    puts $io "--HOSTS *!*@host.isp.tld"<br>    puts $io "--XTRA created 1047407821"<br>  close $io<br>}</div></blockquote>I want it to add the host set in the addhosts. With the addhosts setting the idea is that you can add as many host as you want.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Sun Jul 20, 2003 5:00 am</p><hr />
]]></content>
	</entry>
	</feed>
