mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2010
Posts: 7
X
xplo Offline OP
Nutrimatic drinks dispenser
OP Offline
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-
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
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.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard