mIRC Homepage
Posted By: bunar debug me - 10/03/04 01:50 PM
i am having some lilttle problems... i have this in remote:

ON ^1:OP:#: { if ($demode) { echo $chan $timestamps $+ $theme(modes,$nick,$demode) } | write -c debug.log | unset %demode | halt }
ON ^1:DEOP:#: { if ($demode) { echo $chan $timestamps $+ $theme(modes,$nick,$demode) } | write -c debug.log | unset %demode | halt }
ON ^1:VOICE:#: { if ($demode) { echo $chan $timestamps $+ $theme(modes,$nick,$demode) } | write -c debug.log | unset %demode | halt }
ON ^1:DEVOICE:#: { if ($demode) { echo $chan $timestamps $+ $theme(modes,$nick,$demode) } | write -c debug.log | unset %demode | halt }
ON ^1:SERVERMODE:#: { if ($demode) { echo $chan $timestamps $+ $theme(modes,$nick,$demode) } | write -c demode.log | unset %demode | halt }
ON ^1:SERVEROP:#: { if ($demode) { echo $chan $timestamps $+ $theme(modes,$nick,$demode) } | write -c debug.log | unset %demode | halt }
ON ^1:BAN:#: { if ($demode) { echo $chan $timestamps $+ $theme(modes,$nick,$demode) } | write -c debug.log | unset %demode | halt }
ON ^1:UNBAN:#: { if ($demode) { echo $chan $timestamps $+ $theme(modes,$nick,$demode) } | write -c debug.log | unset %demode | halt }


(ignore 1st part of coding)
2nd is to write debug.log, and i have it, but no timestamps are recorded in it... altho i have /debug -pt
how to make log the time with messages?
Posted By: starbucks_mafia Re: debug me - 10/03/04 03:23 PM
I can't see any part of your code where you're writing to debug.log except the lines where you're clearing the file with write -c.

In your code you refer to $demode and then later %demode - possible typo...
Posted By: bunar Re: debug me - 10/03/04 03:57 PM
well only thing i have is :

on 1:START: {
.debug on

}

and thru all script files nothing else on DEBUG word can be found cept those lines i pasted above


in aliases i have this:

demode { %demode = $read -n [ $+ [ $lines(debug.log) ] ] debug.log | if ($gettok(%demode,2,32) == mode) { return $gettok(%demode,4-,32) } }

and that is all i have
© mIRC Discussion Forums