PDA

View Full Version : Fix to show correct user who do REQUEST in IRC


iZydor
06-02-2007, 08:31 PM
Fix to correct show User who do request in irc

PACKAGES TESTED in: dZSbot + ioA


Edit TCL File and find in proces



proc proc_reqadd {nick uhost hand chan arg} {


Replace all this F.u.n.c.t.i.o.n with this:



################################################## #######
# ADD REQUEST ON IRC #
################################################## #######
proc proc_reqadd {nick uhost hand chan arg} {
global binary disable announce
if { $disable(REQUESTIRC) == 0 } {
set arg [lindex $arg 0]
set argument \[by-$nick\]-$arg
set status [catch { exec -- $binary(IOA) REQUESTIRC $argument } result]
if { $status == 0 } {
set output $announce(REQUESTIRC)
set output [replacevar $output "%user" $nick]
set output [replacevar $output "%request" $arg]
set output [basicreplace $output "REQUEST"]
sndchan "putquick" $chan $output
}
}
}




SCRIPT ioA.cfg in section:

[Request]
Request_Line
Request_Field


CHANGE TO THIS:


[Request]
Request_Line = " [%##][%D-%M-%Y] - %request"
Request_Field = " - "



in dir request will be show [REQUEST]-[by-USER]-RELEASENAME:

[REQUEST]-[by-iZydor]-TEST.USER.REQUEST

jenga
06-30-2007, 01:57 AM
this is nice, but only useful if you only request via irc....

Implementing this and then requesting from ftp screwes it up