Hi folks.

Im creating a bot for a friend, one feature of which is a login system.

The system sets a variable to a username when a user logs in. So for example

%The_Duck Darren

where $nick == The_Duck, Darren == Username.

Ok thats the backgrond out of the way, here is the problem.

/ChangeNick {
if ($+(%,$nick) != $null) {
/set $+(%,$newnick) $+(%,$nick)
/unset $+(%,$nick)
}
}

This code is used to change a nickname when a user changes their name. However $+(%,$nick) returns %The_Duck, and is not being evaluated to Darren as I want.

Thank you in advance for any help,
The_Duck
Darren Barrick