mIRC Home    About    Download    Register    News    Help

Print Thread
Irc name script #209115 04/02/09 01:21 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
Hi guys,

Just another question....

When someone connects to irc with his normal name and then disconnects and connects again with a different name.. can you make a script that it will gives me a notice like "Roflcopter is previously known as: Lolz0r"

Re: Irc name script [Re: Dracoz] #209119 04/02/09 04:22 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
You'll likely find serveral scripts of this kind at scripting sites like Hawkee's, mIRCscripts.org, or mIRC.net.

In addition, a quick board search directed me to this thread. You should be able to bypass the "line too long" issue described there if you replace the following lines:

Code:
hadd trackusers $address($nick,3) %n $nick
with:
Code:
hadd trackusers $address($nick,3) $gettok(%n,-1--35,32) $nick


and
Code:
hadd trackusers $address($newnick,3) %n $newnick
with:
Code:
hadd trackusers $address($newnick,3) $gettok(%n,-1--35,32) $newnick


smile

Re: Irc name script [Re: Horstl] #209198 06/02/09 02:32 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
* /hadd: no such table 'trackusers' (line 19, remote.ini)
-
* /hadd: no such table 'trackusers' (line 30, remote.ini)
-
* /hadd: no such table 'trackusers' (line 30, remote.ini)
-

line 30 =
hadd trackusers $address($nick,3) $newnick

line 19 =
hadd trackusers $address($nick,3) $nick

Last edited by Dracoz; 06/02/09 02:35 PM.
Re: Irc name script [Re: Dracoz] #209199 06/02/09 02:47 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
After loading that script, you need to restart mIRC (the table "trackusers" is generated on start)

Re: Irc name script [Re: Horstl] #209201 06/02/09 03:59 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
Hmmm now i got another problem some users on the server where i am are using the same thing like POCT@Werse.users.barafranca.com or something like that...

So i get this
16:53 * Werse|afk has also used the nicknames: ronniejh Oehoehh`brakkie Quise Scooter`work klazien Scar` Locos|weekend sybox`werken jimation Federall boefje Marleenhaha|honduitlaten Abbandando DonBavaria` Tieske|Gone Amuse[eten] Nietje`DR`Phill Nietje`Dr`Phil

Whois Werse|afk [POCT]
16:59 Address POCT@Werseafk-93121.users.omerta

So the prolbem is it says that they are the same poeple but arent....

How do i fix this ?

Re: Irc name script [Re: Dracoz] #209205 06/02/09 05:08 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
There are several instances of $address(<SOMETHING>,3) in the script (9 instances in total). The "3" after the comma specifies which kind of mask will be stored and used to "recognize" a user later.

The standard set of masks:
Originally Posted By: /help $mask
0: *!user@host
1: *!*user@host
2: *!*@host
3: *!*user@*.host
4: *!*@*.host
5: nick!user@host
6: nick!*user@host
7: nick!*@host
8: nick!*user@*.host
9: nick!*@*.host8

Try with 0 or 1 instead of the 3 smile