mIRC Home    About    Download    Register    News    Help

Print Thread
#74712 10/03/04 01:50 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
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?

#74713 10/03/04 03:23 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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...


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#74714 10/03/04 03:57 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
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


Link Copied to Clipboard