Use this:

Code:
on *:text:*:#: {
  if ($1 == !logout) {
    .timerlogout 1 64800 msg $chan Logged Out.
    msg $chan Starting logout.
  }
  elseif ($1 == !login) {
    if ($timer(logout)) {
      .timerlogout off
      msg $chan Logout terminated.
    }
    else msg $chan Not logging out.
  }
  elseif ($1 == !time) {
    if ($timer(logout)) {
      msg $chan $duration($timer(logout).secs) left until logged out.
    }
    else msg $chan Not logging out.
  }
}


Note that you can change the messages if you want.


Invision Support
#Invision on irc.irchighway.net