mIRC Homepage
Posted By: starpossen silent away on nick change - 23/11/07 06:17 PM
I searched for this, maybe not a good searched as I did not find it.

But what I would like to do is, when I change my nick from nick to nickaway the builtin away trigger in mirc will activate with a preset message, and when I change my nick back to nick, mirc will then set me back.

Once again if I did not search good enough.
Posted By: RoCk Re: silent away on nick change - 23/11/07 06:53 PM

Code:

on *:NICK: {
  if ($newnick == $me) away $iif($newnick == nickaway,<away message goes here>)
}



You could do the opposite too...

Code:

raw 306:*: {
  set -e %herenick $me
  tnick awaynick
}
raw 305:*: {
  tnick $iif(%herenick,%herenick,$mnick)
  unset %herenick
}



That will change your nick to awaynick when you set yourself /away
Posted By: starpossen Re: silent away on nick change - 24/11/07 12:51 AM
I can'tget the first one to work, maybe im to tired, but the second one works, however, I need to input away reason before it sets me away.

Could this be changed to something like the first one?
And if you don't mind me being a bit too n00bish, explain to me how, and thanks for your help.
Posted By: Riamus2 Re: silent away on nick change - 24/11/07 11:00 AM
Code:
on me:*:nick: {
  if (away isin $newnick) { away reason }
  elseif ($away == $true) { away }
}


That should work.
Posted By: starpossen Re: silent away on nick change - 24/11/07 11:48 AM
Thanks to both of you, and Riamus2 yours worked perfectly, exactly how I wanted it, now I actually can see how it works, I shall keep learning smile

Have good weekend both of you.
© mIRC Discussion Forums