mIRC Home    About    Download    Register    News    Help

Print Thread
:( make mirc detect name change #142421 18/02/06 02:12 AM
Joined: Feb 2006
Posts: 2
E
EOF Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Feb 2006
Posts: 2
i'm trying to make a bot the logs info like wordcoutn and stuff liek that, but the problem is that when the person changes their name, it gets messed up. is there anyway in mirc script to detect if a nick changes and detect what it chagnes to?

Re: :( make mirc detect name change #142422 18/02/06 02:13 AM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
/help on nick

old nick: $nick
new nick: $newnick


Gone.
Re: :( make mirc detect name change #142423 18/02/06 06:54 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
you might want to consider using $address to identify the $nick to the table, because assuming someoens called FRED and someones called BARNEY, then BARNEY changes to DINO, then FRED changes to BARNEY, what do u do now, erase the old BARNEY data replacing it with FREDS? what if he renames back, then DINO Leaves, then BARNEY (was DINO) returns to the channel, hes like a new user.

Re: :( make mirc detect name change #142424 18/02/06 08:29 AM
Joined: Mar 2005
Posts: 212
N
NeUtRoN_StaR Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
kudos on the flintstones ref

Re: :( make mirc detect name change #142425 18/02/06 11:46 PM
Joined: Feb 2004
Posts: 8
B
BlueGhost Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: Feb 2004
Posts: 8
I encountered this problem too in one of my channels.
Luckily people logged into the bot to access certain of its features, so it was easy to assign everyone a default nickname (their login), and then use that as a variable name, and assigning their current nick to that.
So:
%loginname current-nickname
From there it's a breeze keeping that info up to date.

Unfortunately, without that login your stats will most likely be misrepresented; what happens if someone with an identical nick to someone else enters (the first person being offline ofcourse) and the stats can't tell the difference ?

A login is the best way to go, I think.

Re: :( make mirc detect name change #142426 19/02/06 09:35 PM
Joined: Feb 2006
Posts: 2
E
EOF Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Feb 2006
Posts: 2
$address, i hate the $Nick variable.... address is far supiorior... and how would i do a login system?