mIRC Homepage
Posted By: Gremel Problems with banning a user - 10/02/08 01:36 AM
A channel I am a member of is having problems banning a user atm. They use a bot from a service, http://www.botservice.net/ But I am thinking this service is broken, as the bot will ban a user. We set the time for 2 weeks using it's code, but after an hour, the bot unbans the user.

So I decided that I will ban the user through the server itself. My question is, what would eb the code for this?

This is what it reveals when viewing the bots internal ban list:

-Tasha- (1) Mask: *!*@*.Dial1.Atlanta1.b1da02e4.net.hmsk (banned by: Kalina_)
-Tasha- 1 Reason: (2 weeks) Tasha's Rule #1
-Tasha- 1 Created: Sun 10 Feb 2008 12:07:57 AM GMT Banned until: Sun 24 Feb 2008 12:07:57 AM GMT


So what would I type in mIRC to have the server ban the same user for 2 weeks?

/ban ?
Posted By: RoCk Re: Problems with banning a user - 10/02/08 02:09 AM

Most bots remove bans from the channel banlist to keep it from becoming full because most networks have a fairly low banlist limt. There is a ban tutorial on the website you referred to, if you read the sticky ban section it says...

Sticky Bans

On its default setting, the bot will remove bans from the channel's banlist a few hours after they were last set (don't worry, it will still keep them in memory). This is to avoid the channel banlist becoming full, which would prevent any more bans from being set. Naturally there are occassions when you don't want the ban to be stored in memory, and would prefer it to be active on channel all the time. This is particularly effective against spambots

Sticky bans are set the same as regular bans, with the addition of one character to the ban reason, which must start with the asterix character "*". This means, of course, that a ban reason must be specified. As a general rule of thumb, you should avoid setting too many sticky bans on the bot, as this decreases the efficiency of the channel's banlist.


So if you want the ban to remain in the channel banlist at all times (sticky), then you would have to do this...

/msg <botnick> ban <#channel> <nick> <bantime> * Go away!
Posted By: Gremel Re: Problems with banning a user - 10/02/08 04:34 AM
Ah, okay. Thanks. I wasn't the person who asked for the bot to be put on the channel, thus wasn't informed of this ruling on the bots side. but I understand it fully now.

What I may ask now though is, if banning a user works by bannign his host, is it possible to ban the username itself? As it seems the particular user has been able to change his host once since banning, be it he was using a netcafe or what I am unsure of. So I was thinking of banning him by some of his common nicks.
Posted By: RoCk Re: Problems with banning a user - 10/02/08 04:43 AM

You could do that by using the last mask on the bottom of that tutorial page as an example.
Posted By: Gremel Re: Problems with banning a user - 10/02/08 04:46 AM
Thanks

so if the person is named Joe, then the code would be

/msg botnick ban #channel *!*Joe@*.* 2w * Reason
Posted By: RoCk Re: Problems with banning a user - 10/02/08 04:47 AM

You're welcome.
Posted By: Gremel Re: Problems with banning a user - 10/02/08 04:49 AM
Just in case you posted before I edited, I thought I would mention that I edited my post above.

Thanks in advance for all your help.
Posted By: RoCk Re: Problems with banning a user - 10/02/08 04:56 AM

Yes that looks good.
Posted By: Herb1941 Re: Problems with banning a user - 10/02/08 04:57 AM
Hello, I am trying to get in touch with anyone or get into a chat room, newbe to the extreem and having difficulties, any suggestions? thanks, Herb
Posted By: Gremel Re: Problems with banning a user - 10/02/08 04:58 AM
Well, first suggestion would be to post a new thread with a title that would hint at your problem. This thread is about banning people....maybe not a good place to start lol
Posted By: Herb1941 Re: Problems with banning a user - 10/02/08 05:03 AM
thanks, will give that a try, this is more difficult than I thought. Herb
© mIRC Discussion Forums