Okay, just an updated version of my previous away...
make sure you set the variable %p password here
and change your nick to what you want
type /a then put your away reason then when you're back type /b
on 1:input:*:{
IF ($1 == /a ) {
set %away.reason $$1
if %away.reason == $null { set %away.reason %default }
nick PUT AWAY NAME HERE
amsg Away: %away.reason
away %away.reason
halt
}
ELSEIF ($1 == /b ) {
nick PUT ACTIVE NAME HERE
pass PUT PASS HERE
amsg Back: %away.reason /Time: $Duration($awaytime)
away
halt
}
else {
return
}
}
I would like to mention the same thing from a performance standpoint. If your mIRC is looking to see if you said /a EVERY TIME you every type ANYTHING, some people who utilize this snippet MAY notice a slight loss in responsiveness whenever they are doing their thing on mIRC. And you already use a variable set "%away." so if you want to unset them all in one fell swoop, just /unset %away.* to remove all variables involved in the snippet at once, when they return from being away.
To me, I don't see the point to enter the command onto the active window and initiate a trigger. An alias can do the same thing. You should add an extra dollar sign to this:$$?="What Reason" so when the variable value isn't filled, you won't just get this: :|:Away:
Again, your else return serves no purpose.