mIRC Homepage
Posted By: nataliad ban mask - 21/05/06 09:53 AM
hello

how do I ban the nicks of this mask: gay19 gay01 etc etc

(meaning the word gay followed by any 2 digits)

thanks!
Posted By: jizzy Re: ban mask - 21/05/06 12:16 PM
Try gay??!*@*
Posted By: nataliad Re: ban mask - 21/05/06 01:15 PM
no

this is not what I want

thx anyway
Posted By: MikeChat Re: ban mask - 21/05/06 04:12 PM
just checking, you knew that "?" is a wildcard for a number in masks.. right?
Posted By: nataliad Re: ban mask - 22/05/06 07:12 AM
Quote:
just checking, you knew that "?" is a wildcard for a number in masks.. right?


are you sure? I thought ? stands for 'one any character', a letter, or a digit, or a symbol

eg gay?? could be gayss, gay--, gays1, gay1] etc, not only gay00, gay01, gay02 etc

am I right?
Posted By: schaefer31 Re: ban mask - 22/05/06 07:36 AM
/help $mask

Quote:
$mask(address,type)
Returns address with a mask specified by type.

$mask(nick!khaled@mirc.com,1) returns *!*khaled@mirc.com

$mask(nick!khaled@mirc.com,2) returns *!*@mirc.com

The available types are:

0: *!user@host
1: *!*user@host
2: *!*@host
3: *!*user@*.host
4: *!*@*.host
5: nick!user@host
6: nick!*user@host
7: nick!*@host
8: nick!*user@*.host
9: nick!*@*.host

You can also specify a type of 10 to 19 which correspond to masks 0 to 9, but instead of using a * wildcard to replace portions of the host, mIRC uses ? wildcards to replace the numbers in the address.

This standard set of masks is also used in other identifiers and commands.
Posted By: tso29 Re: ban mask - 22/05/06 09:35 AM
Code:
 [color:blue] 
on @*:JOIN:#:{
  if (Gay* iswm $nick) && ($len($nick) == 5) && ($mid($nick,4,1) isnum) && ($mid($nick,5,1) isnum) { mode # +b $nick | kick # $nick You are a gay with 2 numerics at the end of your nick, this type of 'gay's' are not welcome.. }
}

[/color]
Posted By: nataliad Re: ban mask - 22/05/06 01:34 PM
nuh

I need mask

we all recognize mirc's inability

developers should add more wildcards, they shouldnt thing we just want to use ? and *
Posted By: hixxy Re: ban mask - 22/05/06 04:52 PM
?? and * are fine for most cases. Why cant you use a script?
Posted By: tso29 Re: ban mask - 22/05/06 06:28 PM
Quote:

You sould send an email to IRCD developers, becuse this has nothing to do with mirc a banmask is not client specyfed also wildcarts (* and ?) are not client specifyed this is an IRC command (/mode +b) , and not an mirc!
Posted By: nataliad Re: ban mask - 23/05/06 12:52 AM
Quote:
?? and * are fine for most cases. Why cant you use a script?


you already said it... 'most' cases

wildcards would be necessary apart from scripting

we cant just overload the remote with numerous lines, instead of using a simple wildcard

its obvious thats a major omission by mirc developers
Posted By: MikeChat Re: ban mask - 23/05/06 01:12 AM
pretty high on yourself to be trashing people for the use of a "?" instead of "*" as a numeric wildcard.

perhaps you can offer a list of your programs to back up your opinion of the quality of developement in the mIRC program.
Posted By: genius_at_work Re: ban mask - 23/05/06 01:27 AM
The limitation you are talking about has nothing to do with mIRC itself. mIRC cannot magically force an IRCd recognize random characters as wildcards. That is functionality that would have to be added to the IRCd by its programmers. Maybe you should take it upon yourself to convince every IRCd programmer to allow regex bans/exceptions/etc in their software.

-genius_at_work
Posted By: nataliad Re: ban mask - 01/06/06 01:44 AM
ok then if it is about ircd, tell me the identifier for these nicknames user00, user01, user02 etc etc wink
Posted By: Riamus2 Re: ban mask - 01/06/06 09:36 PM
If you want an identifier, you have to use a script that is designed for that. Wildcards are based on the computer OS and software running the server. Unix/Linux and DOS/Windows and Mac all use ? and * for wildcards. Therefore, you can only use those for the wildcards without writing a script to handle things differently or using a regex banmask if the server allows it.

As for "loading up a remote" ... you are not going to impact your client in ANY way by adding a few lines into remotes.

And, as mentioned, mIRC can't force new wildcards on servers. /ban is a server command, not a mIRC command.

This script works just fine (it's basically what was written previously)...
Code:
on @*:join:#: {
  if (gay* iswm $nick && $len($nick) == 5 && $right($nick,2) isnum) { ban -ku600 $chan $nick }
}


That will ban and kick anyone who has gay## as a nick (where #'s are numbers). It will also automatically remove the ban in 600 seconds (10 minutes) so that your banlist doesn't get too large. This is really an easy script to use and will do what you need.

Also, you should know that many clone spammers like that use a similar dns/ip and you can often do a ban on something like:

gay??!*dumb@*

or

gay??!*@*.sympatico.ca

Yes, those will catch people with nicks that are 5 letters, but do not have numbers at the end... but how many are going to be from a specific host or have the same identd as well? Of course, your cloners may have completely different dns/ip information.

Or, you can just tell people that they can't use gay?? as a nick. Period. I can't see that you'll have that many legitimate people using gay?? as a nick without the numbers at the end.

Either way, you can complain to the network/server about banning with regex. Maybe they'll decide to allow it. If they don't, then you can't do anything about it. mIRC certainly can't force it on them.
Posted By: tyler2435 Re: ban mask - 26/06/06 01:05 AM
/ban gay*!*@*

... quite simple ... that above will work just fine for any circumstances that someone has their nickname starting with "gay" ... you could do /ban *gay*!*@* to ban anoyone with "gay" in their nickname, for example ... you-are-all-gay-people ... (even though thats too many chars, but you get the point)
© mIRC Discussion Forums