mIRC Home    About    Download    Register    News    Help

Print Thread
#9198 01/02/03 12:28 PM
T
The_Duck
The_Duck
T
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

#9199 01/02/03 01:21 PM
A
arps
arps
A
$eval($+(%,$nick),2)


Link Copied to Clipboard