PDA

View Full Version : !reqfilled and !reqdel announce in public chan instead of notice


Bobby_Digital
05-19-2004, 04:27 AM
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

Guardian
05-19-2004, 12:24 PM
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

Zer0Racer
05-19-2004, 12:25 PM
You could easily fix that yourself by editing dZSbot.tcl. Scroll down to part where it says:
#################################################
# DEL REQUEST ON IRC #
#################################################
proc proc_reqdel {nick uhost hand chan arg} {
etc.

Replace
puthelp "NOTICE $nick :Request number $arg is now deleted"
with
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.

Bobby_Digital
05-19-2004, 02:05 PM
Ok thanks for the answers guys.

Ill get to it ASAP :)

/Bobby_Digital

Bobby_Digital
05-19-2004, 03:05 PM
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:


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