I have created a script with can check if someone is @ % & * + ~ is on the channel
Why i have made it? I have seen a post from Maintaindew (Sorry if i typ your bad) and he said: Mayby you can if a admin is Owner in the channel, but i don't know how, So that's a reason why i posted it. (I had it already for a few weeks :P)
$check($chan,$nick)
can return:
5 = ~
4 = &
3 = @
2 = %
1 = +
0 = Nothing
Edit:
Now you can use $check($chan,$nick) >= 3) Then can @ & and ~ use the command
when you have $check($chan,$nick) == 3) Only @ can use the command
alias check {
if ($left($1,1) == $chr(35)) {
if ($2 ison $1) {
%a = $left($nick($1,$2).pnick,1)
if (%a == $chr(126)) !return 5
elseif (%a == $chr(38)) !return 4
elseif (%a == $chr(64)) !return 3
elseif (%a == $chr(37)) !return 2
elseif (%a == $chr(43)) !return 1
else !return 0
}
else !return $color(info) -ae * /check: insufficient parameters
}
else !return $color(info) -ae * /check: insufficient parameters
}
on *:TEXT:*:#: {
if ($1 == !test) {
if ($check($chan,$nick) == 5) {
msg $chan You are owner of the chan
}
if ($check($chan,$nick) == 4) {
msg $chan You are Admin on the chan
}
if ($check($chan,$nick) == 3) {
msg $chan You are an Op this chan
}
if ($check($chan,$nick) == 2) {
msg $chan You are Half-Op
}
if ($check($chan,$nick) == 1) {
msg $chan You have just a voice here
}
if ($check($chan,$nick) == 0) {
msg $chan You dont have any status in this chan or you must login
}
}
}
This does the same thing and uses the current channel as default.
alias check {
if ($active ischan) {
var %a $pos(+%@&~,$left($nick($chan,$1).pnick,1),1)
return $iif(%a,%a,$null)
}
}
on *:TEXT:*:#: {
if ($1 == !testing) {
if ($check($nick) == 5) { msg $chan You are owner of the chan }
if ($check($nick) == 4) { msg $chan You are Admin on the chan }
if ($check($nick) == 3) { msg $chan You are an Op this chan }
if ($check($nick) == 2) { msg $chan You are Half-Op }
if ($check($nick) == 1) { msg $chan You have just a voice here }
if (!$check($nick)) { msg $chan You dont have any status in this chan or you must login }
}
}
Nice script, I just a use this little identifier I wrote up for nIRC.
alias disnick {
if (!$isid) halt
if (!$2) {
if ($cnick($1)) return $+ $cnick($1).color $+ $1 $+
else return $+ $cnick(*).color $+ $1 $+
}
if ($left($nick($2,$1).pnick,1) != $left($1,1)) return $+ $nick($2,$1).color $+ $left($nick($2,$1).pnick,1) $+ $1 $+
else return $+ $nick($2,$1).color $+ $+ $1 $+
}
Use: $disnick($nick,$chan) $chan is optional.
It returns the nick prefixed with their highest mode, it will also be colored according to your nick color setup.
Edit: Hmm, the control+* chars arent showing up :/
I rate it a 7.