mIRC Home    About    Download    Register    News    Help

Print Thread
Creating a NICK alias #4474 02/01/03 03:26 AM
Joined: Jan 2003
Posts: 1
C
curious Offline OP
Mostly harmless
OP Offline
Mostly harmless
C
Joined: Jan 2003
Posts: 1
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

Re: Creating a NICK alias #4475 02/01/03 03:34 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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) }

Re: Creating a NICK alias #4476 02/01/03 03:43 AM
Joined: Dec 2002
Posts: 144
D
Dana Offline
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
Code:
nn { nick {abc}Name- $+ $1 }

... should work.


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
Re: Creating a NICK alias #4477 02/01/03 03:44 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Does it? Damn, I always thought {} would bugger it up...oh well now I look stupid frown

Re: Creating a NICK alias #4478 02/01/03 03:48 AM
Joined: Dec 2002
Posts: 144
D
Dana Offline
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
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.


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke