mIRC Home    About    Download    Register    News    Help

Print Thread
#190650 23/11/07 06:17 PM
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
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.

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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

Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
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.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on me:*:nick: {
  if (away isin $newnick) { away reason }
  elseif ($away == $true) { away }
}


That should work.


Invision Support
#Invision on irc.irchighway.net
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
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.


Link Copied to Clipboard