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

	<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-05-13T16:30:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-05-13T16:30:24-04:00</updated>

		<published>2004-05-13T16:30:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36319#p36319</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36319#p36319"/>
		<title type="html"><![CDATA[working with a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36319#p36319"><![CDATA[
Thanks for your help, I know you were trying to help me , but as I said before,I"m just not a coder, I tried it and screwed more things up than I  fixed anything. Some people are not born to do this stuff and some are, I just happen to be one thats not, I'm good in a lot of other things but I flunked this one.<br><br>I finally found someone to code  it for me. not from here.<br><br>Thanks again<p>Statistics: Posted by Guest — Thu May 13, 2004 4:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2004-05-11T22:13:49-04:00</updated>

		<published>2004-05-11T22:13:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36288#p36288</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36288#p36288"/>
		<title type="html"><![CDATA[working with a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36288#p36288"><![CDATA[
<blockquote class="uncited"><div> Stdragon I appreciate your help, but hell I don't even know how to start to put that into tcl format, when I ask for an example I meant something in code. Is there any script or similiar script around that someone has done this, I would think something simiar to this has happened or needed before.</div></blockquote>stockman, there are piles of examples at <a href="http://www.egghelp.org/tcl.htm" class="postlink">www.egghelp.org/tcl.htm</a> . Or you can read some tutorials on <a href="http://www.suninet.nl/tcl.php" class="postlink">http://www.suninet.nl/tcl.php</a>.<br><br>But with a little logical thinking you can convert stdragon's lines easily into a working script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue May 11, 2004 10:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-05-11T12:46:59-04:00</updated>

		<published>2004-05-11T12:46:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36282#p36282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36282#p36282"/>
		<title type="html"><![CDATA[working with a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36282#p36282"><![CDATA[
<blockquote class="uncited"><div>Example bind: bind pub - !baa myproc<br><br>Example of defining a proc: proc something {a b c} { # your code here }<br><br>Example of opening a file: set fp [open file]<br><br>Example of reading the lines: set lines [split [read -nonewline $fp] "\n"]<br><br>Example of closing a file: close $fp<br><br>Example of foreach: foreach element $somelist { putlog $element }<br><br>Example of if statement: if {2 == 2} { putlog "true!" } { putlog "false!" }<br><br>Example of string matching: set matches [string match "sheep*" "sheep are sexy"]</div></blockquote>Stdragon I appreciate your help, but hell I don't even know how to start to put that into tcl format, when I ask for an example I meant something in code. Is there any script or similiar script around that someone has done this, I would think something simiar to this has happened or needed before.<p>Statistics: Posted by Guest — Tue May 11, 2004 12:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-05-11T08:52:22-04:00</updated>

		<published>2004-05-11T08:52:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36278#p36278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36278#p36278"/>
		<title type="html"><![CDATA[working with a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36278#p36278"><![CDATA[
Example bind: bind pub - !baa myproc<br><br>Example of defining a proc: proc something {a b c} { # your code here }<br><br>Example of opening a file: set fp [open file]<br><br>Example of reading the lines: set lines [split [read -nonewline $fp] "\n"]<br><br>Example of closing a file: close $fp<br><br>Example of foreach: foreach element $somelist { putlog $element }<br><br>Example of if statement: if {2 == 2} { putlog "true!" } { putlog "false!" }<br><br>Example of string matching: set matches [string match "sheep*" "sheep are sexy"]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue May 11, 2004 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-05-11T08:41:42-04:00</updated>

		<published>2004-05-11T08:41:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36277#p36277</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36277#p36277"/>
		<title type="html"><![CDATA[working with a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36277#p36277"><![CDATA[
I now realize no one is going to write this code for me, but a small example sure would help.<p>Statistics: Posted by Guest — Tue May 11, 2004 8:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-05-11T02:10:23-04:00</updated>

		<published>2004-05-11T02:10:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36273#p36273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36273#p36273"/>
		<title type="html"><![CDATA[working with a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36273#p36273"><![CDATA[
Put your hostmasks into a file with a text editor.<br><br>Make a bind for the !stocklist command with the "bind" command, probably with the "pub" binding. Check the tcl-commands.doc that comes with eggdrop.<br><br>To see if the user's hostmask is in the file, open up the file ("open"), read it ("read", "split"), close the file ("close"), and search the results ("foreach", "string match"). Check the tcl manual at <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm</a> for info on each command.<br><br>Now you have pretty much all the commands you need, as well as the order they go in.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue May 11, 2004 2:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-05-10T16:25:39-04:00</updated>

		<published>2004-05-10T16:25:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36260#p36260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36260#p36260"/>
		<title type="html"><![CDATA[working with a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36260#p36260"><![CDATA[
Ok, let me try a different approach to my problem, beings i can't seem to get anyone to give a bit of script to play with in my last topic. then I will make an attempt at tcl from there, which I'm not very comfortable doing. I even hire a coder if I could find one. Come on guys I know someone knows how to do this.<br><br>so here goes<br><br>how do I put a host mask into a file on the shell and then when someone does !stocklist it see's if the users host mask is in the file?<p>Statistics: Posted by Guest — Mon May 10, 2004 4:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
