mIRC: Ban users not in channel.

Written by Kimojuno on September 2nd, 2009
0 User Views 0 Bot Views
Email This Post Email This Post
Summary:

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.

Your Ad Here
closeThis post was published 6 months 11 days ago which may make its actuality not valid anymore. This site is not responsible for any misunderstanding.

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.
VN:F [1.6.4_902]
Rating: 0.0/5 (0 votes cast)

FreeBeeHosting

Related posts:

  1. mIRC: Uploading a static page You can use mIRC to upload static HTML pages like...
 

About the author

Kimojuno

Greetings! I am Jeffrey De Cola and author of this blog. I am a Christian and enjoy coding and writing, I write poems and am working on a book. Please feel free to look around and have fun! :D


2 Responses to “mIRC: Ban users not in channel.”

  1. cmd276 says:

    You could also use these: They would give the same result.

    on @userlevel:TEXT:!ban *:#:/ban $chan $address($2,2)
    on @userlevel:TEXT:!unban *:#:/ban -r $chan $address($2,2)

    .Ban (any):/ban $chan $address($?=”Type nick to ban:”,2)
    .Unban (any):/ban -r $chan $address($?=”Type nick to ban:”,2)

Leave a Reply

Spruce up your comments with
<a href="" title=""><abbr title=""><acronym title=""><b><blockquote cite=""><cite><code><del datetime=""><em><i><p><q cite=""><strike><strong>
New comments are moderated before being shown * = required field