Bloodyboss Posted January 28, 2010 Report Share Posted January 28, 2010 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 More sharing options...
Fanfare Posted January 28, 2010 Report Share Posted January 28, 2010 on *:connect:.timeraway 0 300 nickchange alias -l nickchange { 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 More sharing options...
Warrior124 Posted January 29, 2010 Report Share Posted January 29, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now