Yes, you read that right. There is a very easy way to ban users that are not in any channels you currently are in. How? Let us look at the standard mIRC nick list.
.Ban:/ban $$1 2
This is actually quite simple to change so that anyone on the server can be banned and unbanned using their correct hmask! I do not suggest using a bot that is opered up though, because it may ban the person using their actual IP address and not their hmask.
NOTE: This is tested on mIRC 6.35 using a InspIRCd-1.2 server.
on @userlevel:TEXT:!ban *:#:/ban $chan $$2 2 on @userlevel:TEXT:!unban *:#:/ban -r $chan $$2 2
You could always ban people yourself, without them being in any room you are in, by using the following code:
.Ban (any):/ban $chan $$?="Type nick to ban:" 2 .Unban (any):/ban -r $chan $$?="Type nick to ban:" 2
Again I reccomend not being opered or you may ban the user using their actual host and not their hostmask. Try it carefully if you do oper when using it.
Credits:
- This is something I discovered myself a few months ago.
