mIRC Home    About    Download    Register    News    Help

Print Thread
E
EOF
EOF
E
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,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
/help on nick

old nick: $nick
new nick: $newnick

D
DaveC
DaveC
D
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.

N
NeUtRoN_StaR
NeUtRoN_StaR
N
kudos on the flintstones ref

B
BlueGhost
BlueGhost
B
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.

E
EOF
EOF
E
$address, i hate the $Nick variable.... address is far supiorior... and how would i do a login system?


Link Copied to Clipboard