mIRC Home    About    Download    Register    News    Help

Print Thread
#43146 20/08/03 06:18 AM
Joined: Aug 2003
Posts: 136
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 136
I had help earlier on a script that would recognize a person's mask and if it is a certain mask make there nick in the nick list a certain color
alias nlist {
var %n = 1, %chan = $active
while ($nick(%chan, %n)) {
var %addy = $address($ifmatch, 5)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Format
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; if (mask iswm %addy) /cline color %chan %n
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
if (*!*@*.irchat.tv iswm %addy) /cline 4 %chan %n
if (*!*@*tv-freejavachat.com iswm %addy) /cline 4 %chan %n
if (*!*@*aol.com iswm %addy) /cline 4 %chan %n
; so on, and so forth
/inc %n
}
}

on 1:CONNECT: {
.timernlist [ $+ [ $cid ] ] 0 1 /nlist
}

on 1:DISCONNECT: {
.timernlist [ $+ [ $cid ] ] off
}
That is the basic script I was wondering why I can t make it work with this
if (*!milwchatco@*!* iswm %addy) /cline 4 %chan %n
b/c anyone coming a friends site it would show milwchatco@IRChatISPHere.com when a whois is done, Id like the script to see the milwchatco part is it possible with this script?

#43147 20/08/03 08:56 AM
Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
your mask format: *!milwchatco@*!*
actual format: nick!ident@host.domain

conclusion: there is no ! appearing after the @, so no address will ever match your wildcarded format.

#43148 20/08/03 09:09 AM
Joined: Aug 2003
Posts: 136
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 136
So id want to try something like *!milwchatco@*
?

#43149 20/08/03 09:14 AM
T
theRat
theRat
T
So i'd use mIRC address book(alt+b) nick tab which can do the coloring w/o scripting...

#43150 20/08/03 09:18 AM
Joined: Aug 2003
Posts: 136
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 136
I know that that way is possible Im just trying to expand my mind

#43151 20/08/03 09:28 AM
Joined: Aug 2003
Posts: 136
M
Vogon poet
OP Offline
Vogon poet
M
Joined: Aug 2003
Posts: 136
LocutusofBorg
*!milwchatco@* worked thankyou
And like I said Id like to script to so I can just be more knowledgable even tho I can't spell


Link Copied to Clipboard