mIRC Home    About    Download    Register    News    Help

Print Thread
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?

Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
/help on nick

old nick: $nick
new nick: $newnick


Gone.
Joined: Sep 2003
Posts: 4,230
D
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.

Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
kudos on the flintstones ref

Joined: Feb 2004
Posts: 8
B
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.

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?


Link Copied to Clipboard