Code:
on ^1:SNOTICE:*:{
  if ($1-8 == *** Notice -- Client connecting on port 6667:) && (*[color:red]war[/color]@* iswm $10) {
    var %addy = $mask(*! $+ $mid($10,2-,$calc($len($10)-3)),4)
    ; this will set the address in the format *!*@xxx.xxx.xxx.* to a local variable called %addy
    put KLINE command here
    ; use %addy in your kline command for the address to kline
  }
}


Change the red part to the ident of your choice, be specific. This should work, BUT i highly suggest you dont ban users based entirely on the ident used.

Also, most services support other types of klines, such as sqline sgsline and szline which allow akilling of users based on nickname, realname and mask respectively.

Last edited by Om3n; 08/10/05 05:52 AM.