mIRC Home    About    Download    Register    News    Help

Print Thread
#43146 20/08/03 06:18 AM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
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?


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
#43147 20/08/03 08:56 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#43148 20/08/03 09:09 AM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
Joined: Aug 2003
Posts: 136
So id want to try something like *!milwchatco@*
?


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
#43149 20/08/03 09:14 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
So i'd use mIRC address book(alt+b) nick tab which can do the coloring w/o scripting...


Code:
//if ( khaled isgod ) echo yes | else echo no
#43150 20/08/03 09:18 AM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
Joined: Aug 2003
Posts: 136
I know that that way is possible Im just trying to expand my mind


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
#43151 20/08/03 09:28 AM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
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


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.

Link Copied to Clipboard