mIRC Homepage
Posted By: MrPeepers iswm %addy - 20/08/03 06:18 AM
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?
Posted By: LocutusofBorg Re: iswm %addy - 20/08/03 08:56 AM
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.
Posted By: MrPeepers Re: iswm %addy - 20/08/03 09:09 AM
So id want to try something like *!milwchatco@*
?
Posted By: theRat Re: iswm %addy - 20/08/03 09:14 AM
So i'd use mIRC address book(alt+b) nick tab which can do the coloring w/o scripting...
Posted By: MrPeepers Re: iswm %addy - 20/08/03 09:18 AM
I know that that way is possible Im just trying to expand my mind
Posted By: MrPeepers Re: iswm %addy - 20/08/03 09:28 AM
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
© mIRC Discussion Forums