mIRC Home    About    Download    Register    News    Help

Print Thread
Variables #9198 01/02/03 12:28 PM
Joined: Feb 2003
Posts: 3
T
The_Duck Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Feb 2003
Posts: 3
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

Re: Variables #9199 01/02/03 01:21 PM
Joined: Dec 2002
Posts: 30
A
arps Offline
Ameglian cow
Offline
Ameglian cow
A
Joined: Dec 2002
Posts: 30
$eval($+(%,$nick),2)