Jump to content

What Is Wrong With This Code ????????


Bloodyboss

Recommended Posts

on *:connect: {

timeraway 0 300 {

if ( $idle >= %atime ) && (!$away) {

nick $me $+ [away]

away 4 auto away after %atime minutes | ame 1auto4 away after %atime 1minutes

}

}

}

 

can anyone tell me why this code is not working

and can anyone please try it I set %atime as 300 [5 mins] it is in vairiables like this %atime 300

Link to comment
Share on other sites

The connect bit refers to when you connect to a server. So, you will get errors if you are not in a channel. Try this code...

 

on *:connect:.timeraway 0 300 nickchange
alias -l nickchange {
  if ($active ischan) {
    if ($idle >= %atime) && (!$away) {
      nick $me $+ [away]
      away 4 auto away after %atime minutes
      ame 1auto4 away after %atime 1minutes
    }
  }
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...