mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
I think there should be a prefix for regular users on mirc. I don't know if this is possible but when i script with this code it returns nothing for regulare users because there is no actual symbol.

alias mode1 {
if ($nick(#,$nick,r)) return reg
return $replace($left($nick(#,$nick).pnick,1) ,+,+,@,@,%,%.,.)
}

suppose i could just use 'reg' or something but i think there should be a default one built into mirc.

Hope everyone understands what I mean.

Joined: Dec 2002
Posts: 266
Z
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 266
mIRC doesn't "control" what user prefixes are used. The IRCd you connect to does.

You can just check if ($left($nick(#,$nick).pnick,1) isalpha) { or something like that.


You won't like it when I get angry.
Joined: Aug 2004
Posts: 147
N
Vogon poet
Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
Yuck, why are you using # instead of $chan, it's so ugly.

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Simply because he can most likely, its just a scripting style.

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
uh? # is superior to $chan because its less typing :P


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Jul 2004
Posts: 19
S
Pikka bird
Offline
Pikka bird
S
Joined: Jul 2004
Posts: 19
User modes are defined by the IRCd. Moreover, you may use something like that :

alias mode1 {
if ($nick isop $chan) return @
elseif ($nick ishop $chan) return %
elseif ($nick isvoice $chan) return +
elseif ($nick isreg $chan) return reg
return other
}

'Other' is used for modes like &, !, etc...
I know this code is much bigger than yours but mine works grin


Thinking is the worst disease of the brain.

To reply by mail, remove "nospam-" in my adress

Link Copied to Clipboard