mIRC Home    About    Download    Register    News    Help

Print Thread
#214183 22/07/09 04:27 AM
Joined: Jan 2007
Posts: 31
J
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2007
Posts: 31
Yah I got a input script
Code:
  if ($1 == !kb) {
    .ban -k $chan $2 $2 $3
  }
}

It works fine, but it bans the complete nickmask+isp etc. I just want to it ban the isp of the nick, not the nick etc.
It bans like NICK!*NICKNAME@ISP.etc.etc.com
I just want it to ban like *!*@ISP.etc.etc.com

Justin_F #214184 22/07/09 05:29 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
You shouldn't have $2 twice. You should have $2 followed by 2. The parameter after the nick is the ban type, specified in /help /ban

.ban -k # $2 2 $3-

See /help $mask to see what the mask type #2 is.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard