mIRC Homepage
Posted By: curious Creating a NICK alias - 02/01/03 03:26 AM
I am new to IRC and wish to make a NICK alias. I want to be able to add things to the end of a default nick. I've tried a couple things:

/nn /nick {abc}Name-$1

and

/nn {
/set -n %default {abc}Name
/nick %default-$1
}

I think part of the problem is that I need to use curly braces in the name. I also need to add things to the end of the name, but putting a $1 after the name without a space seems to cause a problem... Can anyone help? Is there a way to 'escape' certain characters?

Thanks
Posted By: Collective Re: Creating a NICK alias - 02/01/03 03:34 AM
Do you mean that if someone typed /nn Abc it would change their name to {abc}Name-Abc? If so use:
/nn { nick $chr(123) $+ abc $+ $chr(125) $+ Name- $+ $1 }
or
/nn { nick $+($chr(123),abc,$chr(125),Name-,$1) }
Posted By: Dana Re: Creating a NICK alias - 02/01/03 03:43 AM
Code:
nn { nick {abc}Name- $+ $1 }

... should work.
Posted By: Collective Re: Creating a NICK alias - 02/01/03 03:44 AM
Does it? Damn, I always thought {} would bugger it up...oh well now I look stupid frown
Posted By: Dana Re: Creating a NICK alias - 02/01/03 03:48 AM
Nah. After all, better safe than sorry. However, since the { and } characters are not seperate but are rather glued to "abc", it shouldn't cause any problems.
© mIRC Discussion Forums