mIRC Homepage
Posted By: The_Duck Variables - 01/02/03 12:28 PM
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
Posted By: arps Re: Variables - 01/02/03 01:21 PM
$eval($+(%,$nick),2)
© mIRC Discussion Forums