Go Back   FlashFXP Forums > > > >

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-19-2004, 04:27 AM   #1
Bobby_Digital
Junior Member
 
Join Date: May 2004
Posts: 9
Default !reqfilled and !reqdel announce in public chan instead of notice

Hi everyone

Right now im using ioA, php_Psio and dZSbot and everything works fine. Theres just one thing.

When i do the !reqfilled and !reqdel i get the reply as a Notice (red answer from bot) that the request was filled or deleted. I want it to announce it in the chan instead so that everyone sees when a request has been filled or deleted.

When i do the site command on the FTP like site reqfilled it announces fine in the chan but why dont it when i type !reqfilled in the IRC chan? All i get then is the notice but i want it to announce in the chan instead of notice.

Hope u can help me out and thanks for a great bot!

/Bobby_Digital
Bobby_Digital is offline   Reply With Quote
Old 05-19-2004, 12:24 PM   #2
Guardian
Senior Member
 
Join Date: May 2003
Posts: 131
Default

open the tcl, search for # FILLED REQUEST ON IRC

and replace

puthelp "NOTICE $nick :Request number $arg is now filled"

with

puthelp "PRIVMSG $chan :Request number $arg is now filled"

fe.
Grtz
Guardian
Guardian is offline   Reply With Quote
Old 05-19-2004, 12:25 PM   #3
Zer0Racer
Senior Member
ioFTPD Scripter
 
Join Date: Oct 2002
Posts: 703
Default

You could easily fix that yourself by editing dZSbot.tcl. Scroll down to part where it says:
Code:
#################################################
# DEL REQUEST ON IRC				#
#################################################
proc proc_reqdel {nick uhost hand chan arg} {
etc.

Replace
Code:
puthelp "NOTICE $nick :Request number $arg is now deleted"
with
Code:
putserv "PRIVMSG $chan :Request number $arg is now deleted"
Do it the same way for the other places in proc_reqdel and proc_reqfilled so that dZSbot announces in chan instead of notice to nick.
Zer0Racer is offline   Reply With Quote
Old 05-19-2004, 02:05 PM   #4
Bobby_Digital
Junior Member
 
Join Date: May 2004
Posts: 9
Default

Ok thanks for the answers guys.

Ill get to it ASAP

/Bobby_Digital
Bobby_Digital is offline   Reply With Quote
Old 05-19-2004, 03:05 PM   #5
Bobby_Digital
Junior Member
 
Join Date: May 2004
Posts: 9
Default

Ok i managed to get it to work with some help from toot. Thanks!

Just delete where it says: puthelp "NOTICE $nick :Request number not found: $arg isn't a number"

and copy in this code:

Code:
			set output $announce(REQDELIRC)
			set output [replacevar $output "%user" $nick]
			set output [replacevar $output "%request" $arg]
			set output [basicreplace $output "REQUEST"]
			sndchan "puthelp" $chan $output
Remember to change (REQDELIRC) to (REQFILLED) when u wanna have the same announce when u do the !reqfilled

Then it will announce fine in the chan as youve set up it to do under set announce.

Good luck and thanks to toot

/BObby_Digital
Bobby_Digital is offline   Reply With Quote
Reply

Tags
announce, chan, ftp, notice, reqfilled

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 03:28 PM.

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