Old 06-02-2007, 08:31 PM   #1
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
Old 06-30-2007, 01:57 AM   #2
jenga
Junior Member
 
Join Date: Jun 2007
Posts: 2
Default

this is nice, but only useful if you only request via irc....

Implementing this and then requesting from ftp screwes it up
jenga is offline   Reply With Quote
Reply

Tags
$output, arg, output, request, set

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:44 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)