mIRC Homepage
Posted By: dlanod Logging of Events - 16/01/03 01:31 AM
It seems that at some point, the way events (such as a user joining/leaving a channel, mode changes and so on) are logged/displayed was changed from "*** nick ..." to "* nick ...". Is there anyway to change this back?
Posted By: Hammer Re: Logging of Events - 16/01/03 03:26 AM
Well... one way would be to rescript the way they show up and halt the default text. /help halting default text
Posted By: dlanod Re: Logging of Events - 16/01/03 11:23 AM
Thanks for that. Next question: How do I get [$time] and/or ($address) to display as expected? ie. [23:15:12] and (ident@host).
Posted By: Watchdog Re: Logging of Events - 16/01/03 01:24 PM
Code:
ON ^*:JOIN:#: {
  if ($nick != $me) {
    echo $colour(join) -t # $nick has entered # -- $nick(#,0) users -- $address
  }
  haltdef
}
ON ^*:PART:#: {
  if ($nick != $me) {
    echo $colour(part) -t # $nick has left # -- $calc($nick(#,0)-1) users -- $address
  }
  haltdef
}
-t is to enable the timestamp for the event and $address looks after the address for you. $nick(#,0) gives you a user count.
© mIRC Discussion Forums