For bans by realname I think you should catch the raw of someone's /whois for the realname, since there is no identifier for it. It'd probably be something like (goes in Remote):
alias banrealname { set %banrealname $chan | whois $$1 }
raw 311:*:{ if (%banrealname) { mode %banrealname +b ~r: $+ $replace($6-,$chr(32),_) | unset %banrealname } }
Where $$1 is someone's nick.
You can choose to enclose it in wildcards or even replace spaces with wildcards instead of underscores. Note: this may give problems with people who use colour/bold/etc in realnames. If you really want to avoid anything like that, use:
raw 311:*:{ if (%banrealname) { mode %banrealname +b ~r:* $+ $replace($strip($6-),$chr(32),*) $+ * | unset %banrealname } }
For ~c you can just do something like:
/banchan /mode $chan +b ~c: $+ $$1
Where $$1 is #channelname
Last edited by 5618; 18/06/07 06:10 PM.