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

	<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-09-16T06:42:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2003-09-16T06:42:13-04:00</updated>

		<published>2003-09-16T06:42:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27142#p27142</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27142#p27142"/>
		<title type="html"><![CDATA[Help to add/post date]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27142#p27142"><![CDATA[
how to set from nickname to Date<br>that post this -&gt; News by <strong class="text-strong">nick</strong>:<br>and this i need -&gt; News 16/09-2003:<br><div class="codebox"><p>Code: </p><pre><code># add newsproc nws:addnews {nick uhost handle chan arg} {    global nws    if {$chan != $nws(chan)} {return 0}    set file $nws(file) ; set arg [mirc_strip "$nick $arg"]    set nws(fd) [open $file a+]    puts $nws(fd) $arg    close $nws(fd)    putserv "NOTICE $nick :News has been added"    putcmdlog "&lt;&lt;$nick&gt;&gt; !$handle! Added news in $chan."    return 1}# read newsproc nws:news {nick uhost handle chan arg} {    global nws    if {$chan != $nws(chan)} {return 0}    set file $nws(file)    if {![file exists $file]} {putserv "NOTICE $nick :No news found, $file does not exist" ; return}    set nws(fd) [open $file r]    set nws(list) ""    while { ![eof $nws(fd)] } {     set tmp [gets $nws(fd)]     if { $tmp != ""} {lappend nws(list) $tmp }    }    close $nws(fd)    if {[llength $nws(list)] == 0} {putserv "NOTICE $nick :No news found, $file is empty"; return}    set arg [split $arg]    if {$arg=="" || ![string is integer $arg]} {       putserv "NOTICE $nick :[exec grep -c "" $file] news items:"       foreach news $nws(list) { set place [expr [lsearch -exact $nws(list) $news] + 1] set name [lindex [split $news] 0] set comments [expr [llength [split $news |]] - 1]         putserv "NOTICE $nick :$place.\002 [lrange [split $news] 1 4]...\002 ($comments comments)"       }    } else {       if {$arg &gt; [llength $nws(list)] || $arg &lt;= 0} {return}       set news [split [lindex [split [lindex $nws(list) [expr $arg - 1]] |] 0]]       set cmnt [lrange [split [lindex $nws(list) [expr $arg - 1]] |] 1 end]       putserv "NOTICE $nick :\002News\002 by \002[lindex $news 0]\002: [lrange $news 1 end]"       foreach line $cmnt {          putserv "NOTICE $nick :\002Comment\002 by \002[lindex [split $line] 1]\002: [lrange [split $line] 2 end]"       }    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Tue Sep 16, 2003 6:42 am</p><hr />
]]></content>
	</entry>
	</feed>
