mIRC Home    About    Download    Register    News    Help

Print Thread
Match nick and ident then ban #264240
11/11/18 08:32 PM
11/11/18 08:32 PM
Joined: May 2010
Posts: 7
X
xplo Offline OP
Nutrimatic drinks dispenser
xplo  Offline OP
Nutrimatic drinks dispenser
X

Joined: May 2010
Posts: 7
Hey. So we have an issue on our network with spam, most bots have their nickname in the ident. Usually this is not something that regular people do. So i figured i could try to ban every users with this, and message them about false positives at the same time. this is what i got so far.
Code:
On @*:JOIN:#:{
  var %_ident = $gettok($gettok($fulladdress,1,$asc(@)),2,$asc(!))
  if ($nick isin %_ident) { ban # $nick 2 | kick # $nick This is a possible bot. If not, please message me for removal }
  msg #Sebastien  14[7beta FuckSpam14] $nick: $nick matched %_ident 
}

But i am not sure it's efficient enough.

Help pls? smile


-simple things are always better-
Re: Match nick and ident then ban [Re: xplo] #264243
11/11/18 09:04 PM
11/11/18 09:04 PM
Joined: Jul 2006
Posts: 3,518
France
W
Wims Offline
Hoopy frood
Wims  Offline
Hoopy frood
W

Joined: Jul 2006
Posts: 3,518
France
Hello, if you are using the IAL (it's on by default), you can use $ial($fulladdress).user to get the ident, which should be more efficient, you can also use ban -k to kick the user as well instead of using two commands.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net