#private_log on
alias query {
query $$1-
.signal QueryOpen $1-
}
on *:open:?:{
write $mircdir $+ \logs\private\ $+ $right($address($nick,0),$calc($len($address($nick,0))-2)) $+ . $+ $server($server).group $+ . $+ $replace($date,/,.) $+ .log Session started at $time $date
}
on *:close:?:{
write $mircdir $+ \logs\private\ $+ $right($address($nick,0),$calc($len($address($nick,0))-2)) $+ . $+ $server($server).group $+ . $+ $replace($date,/,.) $+ .log Session closed at $time $date
}
on *:text:*:?:{
write $mircdir $+ \logs\private\ $+ $right($address($nick,0),$calc($len($address($nick,0))-2)) $+ . $+ $server($server).group $+ . $+ $replace($date,/,.) $+ .log $chr(91) $+ $time $+ $chr(93) < $+ $nick $+ > $1-
}
on *:input:?:{
if $left($1,1) != $chr(47) {
write $mircdir $+ \logs\private\ $+ $right($address($target,0),$calc($len($address($target,0))-2)) $+ . $+ $server($server).group $+ . $+ $replace($date,/,.) $+ .log $chr(91) $+ $time $+ $chr(93) < $+ $me $+ > $1-
}
}
on *:SIGNAL:QueryOpen:{
write $mircdir $+ \logs\private\ $+ $right($address($1,0),$calc($len($address($1,0))-2)) $+ . $+ $server($server).group $+ . $+ $replace($date,/,.) $+ .log Session started at $time $date
}
#private_log end