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

	<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-07T14:29:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kmail]]></name></author>
		<updated>2006-05-07T14:29:13-04:00</updated>

		<published>2006-05-07T14:29:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62774#p62774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62774#p62774"/>
		<title type="html"><![CDATA[A very simple script that fills one file with certain lines.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62774#p62774"><![CDATA[
Thank you Sir_Fz, the script seems to work just fine but would it be really hard to make it add these lines to a certain mySQL table?<br>The point is I just realized that it's very goddamn hard to edit a text file through PHP <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7722">kmail</a> — Sun May 07, 2006 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-05-04T14:10:33-04:00</updated>

		<published>2006-05-04T14:10:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62609#p62609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62609#p62609"/>
		<title type="html"><![CDATA[A very simple script that fills one file with certain lines.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62609#p62609"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub m !banrequest banrequestproc banrequest {nick uhost hand chan arg} { set file scripts/banrequests.txt foreach {n w} [split $arg] {break} set c [join [lrange [split $arg] 2 end]] if {![file exists $file]} { close [open $file w] } set l [split [read [set f [open $file]]][close $f] \n] if {[lsearch $l *|$n|*] != -1} {  puthelp "notice $nick :$n is already added to my banrequests." } {  lappend l "$nick|$n|$w|$c|[ctime [unixtime]]"  set f [open $file w]  foreach le $l {   if {$le != ""} { puts $f $le }  }  close $f  puthelp "notice $nick :Added $n to my banrequests." }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu May 04, 2006 2:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kmail]]></name></author>
		<updated>2006-05-04T11:05:09-04:00</updated>

		<published>2006-05-04T11:05:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62607#p62607</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62607#p62607"/>
		<title type="html"><![CDATA[A very simple script that fills one file with certain lines.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62607#p62607"><![CDATA[
Okay, first of all, I don't know anything about TCL <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> and because of that i am requesting a simple (it seems simple to a guy who knows TCL) script that must do the following:<br><br>When a user, named, for example "Uberpwner1", in certain channel writes "!banrequest Somenick <a href="http://someimagefileontheinternet.png" class="postlink">http://someimagefileontheinternet.png</a> A short comment" the bot adds a new line to some certain file. For example, a file banrequests.txt would get a line like this:<br> "Uberpwner1|Somenick|http://someimagefileontheinternet.png|A short comment|Currenttime"<br>And that would pretty much be it, that would be the MUST HAVE section <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>But also it would be very appreciated if the output file contained writers and Somenicks host and after they write that !banrequest line, there would be somekind of a feedback line msgd to them.<br>And one other appreciated feature would be that the script will announce "new request" or smth like that on a different channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7722">kmail</a> — Thu May 04, 2006 11:05 am</p><hr />
]]></content>
	</entry>
	</feed>
