mIRC Home    About    Download    Register    News    Help

Print Thread
#130856 23/09/05 12:10 AM
Joined: Oct 2003
Posts: 39
Matrixx Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2003
Posts: 39
Hello,
Could someone help me out a litle with a simple code that i need.

This is what I have:
Code:
 /mode #channelname +b nickname (or user address) 


But what do i add to it so that i can set a ban time, for example a ban for 60mins and what would it be for a definate ban.

Thanks fo any help


Gary
#130857 23/09/05 12:51 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
use /ban -ku<time> #channelname nickname (mask)

<time> must be the number of seconds
(mask) is optional and, if supplied, will use the appropriate user address for that mask

/help /ban
/help $mask

#130858 23/09/05 06:25 AM
Joined: Oct 2003
Posts: 39
Matrixx Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2003
Posts: 39
so would this work ok.

Code:
/mode #channelname +b *!*java@*.blah.blahblah.net  


if i wanted to set a permanant ban?


Gary
#130859 23/09/05 06:30 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Yes, that would work. Of course another op may unban it, or perhaps some channel bot set to unban all bans after a certain period of time. Or, if everyone leaves the channel, the ban list is cleared. Theoretically though, the ban would be permanent.

Regards,


Mentality/Chris
#130860 23/09/05 07:12 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Just a little side note, using /mode +b for a ban will prevent the nick/address from joining, but if they are already on the channel when the mode is set, it will not kick them.

If you want to kick them off as well, you'd have to use /kick <channel> <nick>, along with the /mode +b command

An alternative to this, is to use /ban -k <channel> <nick> <mask>

As mentioned before, the <mask> parameter is optional

The -k switch kicks the nick before setting the ban

/help /ban for more information


Link Copied to Clipboard