mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2007
Posts: 37
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Jun 2007
Posts: 37
Hi, I have made an alias for mode # +b ~q: but i cant think of ones for +b ~c:# and +b ~r:


Any help?

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
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.

Link Copied to Clipboard