alias meop { if ($me isop $1) || ($me isvoice $1) || ($me isreg $1) return $true }
alias kb {
//echo -a if $meop($chan) { .echo -st 0,4 No Se puede echar | halt }
mode # +b ~q: $+ $1
}
doesnt work any help
Your alias returns $true for almost everyone in the channel, including those who don't have the power to ban someone. So, for everyone except for someone who has only the +h halfop status, it returns $true, which causes your alias to display the message and halt.
If you want MEOP to return true if someone has the power to ban someone, which is everyone except voices and those with no status:
alias meop { if ($nick($1,$me,a,rv) return $true }
and then your if statement becomes:
alias kb {
//echo -a if (!$meop($chan)) { .echo -st 0,4 No Se puede echar | halt }
mode # +b ~q: $+ $1
}
Thnx for the fast responding
The meop alias didn't have matching parenthesis, but I assumed you'd see the obvious fix from the hint given by the error message in the status window when you used this.
alias meop { if ($nick($1,$me,a,rv)) return $true }