View Single Post
Old 06-02-2007, 08:31 PM  
iZydor
Junior Member
 
Join Date: Jun 2007
Posts: 2
Default Fix to show correct user who do REQUEST in IRC

Fix to correct show User who do request in irc

PACKAGES TESTED in: dZSbot + ioA


Edit TCL File and find in proces


HTML Code:
proc proc_reqadd {nick uhost hand chan arg} {
Replace all this F.u.n.c.t.i.o.n with this:


HTML Code:
#########################################################
# 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:
HTML Code:
[Request]
Request_Line
Request_Field

CHANGE TO THIS:

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

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

HTML Code:
[REQUEST]-[by-iZydor]-TEST.USER.REQUEST

Last edited by iZydor; 06-02-2007 at 08:39 PM.
iZydor is offline   Reply With Quote