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

	<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>2005-02-26T04:47:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2005-02-26T04:47:22-04:00</updated>

		<published>2005-02-26T04:47:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46942#p46942</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46942#p46942"/>
		<title type="html"><![CDATA[simple database script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46942#p46942"><![CDATA[
thanks to both of you<br><br>even if ofloo give me 99.9% of what i need , i always appreciate people who can make me aware of sources to lern more thanks for the link to the guide it will be useful<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Sat Feb 26, 2005 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-02-26T04:12:12-04:00</updated>

		<published>2005-02-26T04:12:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46932#p46932</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46932#p46932"/>
		<title type="html"><![CDATA[simple database script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46932#p46932"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set datafile "storage.dat"proc adding_something {hand idx arg} {  global datafile  if {[llength $arg] != 3} {    putdcc $idx "Syntax error to many or not enough args."  } else {    if {![catch {open $datafile a+} af]} {      puts $af "\{[lindex [split $arg] 0]\} \{[lindex [split $arg] 1]\} \{[lindex [split $arg] 2]\}"      close $af      putdcc $idx "Successfully added $arg to db."    } else {    putdcc $idx "Failed to open $datafile."    }  } }proc delete_something {hand idx arg} {  global datafile  if {[llength $arg] != 3} {    putdcc $idx "Syntax error to many or not enough args."  } else {    if {![catch {open $datafile a+} af]} {      set rd [read $af]      close $af      if {![catch {open $datafile w} wf]} {        foreach {a b c} [split $rd \n] {          if {![string equal -nocase [lindex [split $arg] 0] $a] &amp;&amp; ![string equal -nocase [lindex [split $arg] 1] $b] &amp;&amp; ![string equal -nocase [lindex [split $arg] 2] $c] &amp;&amp; ![string equal {} $a]} {            puts $wf "\{$a\} \{$b\} \{$c\}"          }        }        close $wf        putdcc $idx "Successfully removed $arg from db."      } else {      putdcc $idx "Failed to open $datafile for writting."      }    } else {    putdcc $idx "Failed to open $datafile."    }  }}proc list_database {hand idx arg} {  global datafile  if {[llength $arg] != 0} {    putdcc $idx "To many args"  } else {  if {![catch {open $datafile r} rf]} {      foreach {a b c} [split [read $rf] \n] {        putdcc $idx "Nick: $a Chan: $b AltNick: $c."      }      close $rf    } else {    putdcc $idx "Couldn't open $datafile for reading."    }  }}bind dcc o|o add adding_somethingbind dcc o|o del delete_somethingbind dcc o|o list list_database</code></pre></div>i know i know i was bored .. :p but he is willing to learn <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>not tested tho..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Feb 26, 2005 4:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-26T04:02:02-04:00</updated>

		<published>2005-02-26T04:02:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46931#p46931</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46931#p46931"/>
		<title type="html"><![CDATA[simple database script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46931#p46931"><![CDATA[
Start off here. <a href="http://www.suninet.nl/tclguide/" class="postlink">Click Me</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Sat Feb 26, 2005 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2005-02-26T03:20:12-04:00</updated>

		<published>2005-02-26T03:20:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46929#p46929</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46929#p46929"/>
		<title type="html"><![CDATA[simple database script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46929#p46929"><![CDATA[
hi<br><br>ive try a couple of database scripts and did not find what i want ( my needs are really simple) after a couple of try on my own with big failure and reading the faq on how to work with files , i am to the point of asking ( again ... sic) your help<br><br>what i want to di is simple <br><br>in .dcc type .addcommand ( nick) ( #channelname) ( anothernick)<br><br>those infos will be in a txt file and can be display in partyline with a commande like .listmycommand<br><br>of course the possibility to delete some infos with .delmycommand  ( nick) (#channelname) (anothernick) should be present<br><br>i dont know how to start it properly <br><br>thanks for any advice<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Sat Feb 26, 2005 3:20 am</p><hr />
]]></content>
	</entry>
	</feed>
