1)
Code: Select all
bind pub - !addREQ pub:addREQ
proc pub:addREQ {nick uhost hand chan REQ} {
global REQdir
if {$REQ != ""} {
set fs [open REQ.db w]
puts $fs "$REQ"
puthelp "NOTICE $nick : $REQ added to request list"
close $fs
} else {
puthelp "NOTICE $nick :Usage: !addREQ <requested file>"
}
}
f.e. if i type !addREQ test and !addREQ test2 the REQ.db should have both lines in it and currently it only has the last one. :
2) For the reading part i have this
Code: Select all
bind pub = !viewREQ pub:viewREQ
proc pub:viewREQ {nick uhost hand chan arg } {
set fs [open REQ.db r]
set info [read $fs]
putserv "NOTICE $nick : $fs"
close $fs
}
I don't know where the hell he gets it from but i just wan't to see the list of requests from the REQ.db
Thnx for all you help
-Da Newbie Out
<font size=-1>[ This Message was edited by: Ixje on 2002-01-10 10:52 ]</font>