mIRC Home    About    Download    Register    News    Help

Print Thread
#149607 21/05/06 09:53 AM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
hello

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

(meaning the word gay followed by any 2 digits)

thanks!

#149608 21/05/06 12:16 PM
Joined: May 2006
Posts: 122
J
Vogon poet
Offline
Vogon poet
J
Joined: May 2006
Posts: 122
Try gay??!*@*


If only women came with popup menus and online help.
#149609 21/05/06 01:15 PM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
no

this is not what I want

thx anyway

#149610 21/05/06 04:12 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
just checking, you knew that "?" is a wildcard for a number in masks.. right?

#149611 22/05/06 07:12 AM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
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?

Last edited by nataliad; 22/05/06 07:15 AM.
#149612 22/05/06 07:36 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
/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.

#149613 22/05/06 09:35 AM
Joined: Feb 2006
Posts: 54
T
Babel fish
Offline
Babel fish
T
Joined: Feb 2006
Posts: 54
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]

#149614 22/05/06 01:34 PM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
nuh

I need mask

we all recognize mirc's inability

developers should add more wildcards, they shouldnt thing we just want to use ? and *

#149615 22/05/06 04:52 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
?? and * are fine for most cases. Why cant you use a script?

#149616 22/05/06 06:28 PM
Joined: Feb 2006
Posts: 54
T
Babel fish
Offline
Babel fish
T
Joined: Feb 2006
Posts: 54
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!

#149617 23/05/06 12:52 AM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
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

#149618 23/05/06 01:12 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
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.

#149619 23/05/06 01:27 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

#149620 01/06/06 01:44 AM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
ok then if it is about ircd, tell me the identifier for these nicknames user00, user01, user02 etc etc wink

#149621 01/06/06 09:36 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
#149622 26/06/06 01:05 AM
Joined: Mar 2006
Posts: 29
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Mar 2006
Posts: 29
/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)


-tyler-

Link Copied to Clipboard