irccloud / mibbit / kiwiirc

By psykoo on Oct 19, 2018

WebClient Ban Substitution

This will remove any wide ban matching multiple irccloud/mibbit/kiwiirc clients and replace it with ident ban


This version includes the unresolved IPs

Original post by simo
Special thanks to Ouims@freenode for helping with regex


;                 WebClient Ban Subsitution                                   ;
;                                                                             ;
; This script works in two phases:                                            ;
; 1) - Detect when a site ban is placed on irccloud/mibbit/kiwiirc.           ;
;    - Unban the site ban that could possibly affect multiple clients.        ;
;    - Set variable and wait for the kick to determine the banned client.     ;
;                                                                             ;
; 2) - After the kick takes place, make sure the variable matches the client. ;
;    - Once verified, place an ident ban for the client who got kicked.       ;
;                                                                             ;
; Author:  psycho                                                             ;
; Network: Undernet /                                        ;
; Channel: #psycho                                                            ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Credits ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; simo for the original idea                                                  ;
; Ouims for helping with the regex code.                                      ;

on *:LOAD:{
  echo -at You just loaded the irccloud/mibbit/kiwiirc ban replacement script
  echo -at This Script does not require additional configuration
  echo -at Simply load it and wait for the magic to happen.

on *:UNLOAD:{
  echo -at What the hell??
  echo -at Alrighty then!

ON *:BAN:#:{
  if ($nick(#,$me,@%&~)) {
    if ($regex($banmask,/(mibbit|irccloud|kiwiirc||||||||||||||||| { mode $chan -b $banmask | set %webchatc $addtok(%webchatc,$banmask,32) }
    if ($regex($banmask,/([su]id\D|^\*!~?\*@(?:\*$|\?+))/i)) { mode $chan -b $banmask }

ON ^*:KICK:#:{ 
  if ($istok(%webchatc,$address($knick,2),32)) && ($nick(#,$me,@%&~)) {
    mode # +b $+($gettok($address($knick,0),1,64),@*)
    set %webchatc $remtok(%webchatc,$address($knick,2),32)  


Sign in to comment.
sherazzun   -  Nov 12, 2018

hello i m using this on Dalnet and i found little bug in it when i manually just ban a user it automatically unban it, but when i kickband then it unabn complete host and ban just ident screenshot for your easy reference, please check

psykoo  -  Nov 24, 2018

The script is working as intended.

My only question, was the ident ban removed manually or auto?

sherazzun  -  Nov 26, 2018

script is working fine issue is that when i manually just ban host script auto unaban that host

psykoo  -  Nov 27, 2018

Exactly, this script does not allow you to place host bans on irccloud... only ident bans.

sherazzun  -  Nov 28, 2018

but on dalnet some time we did host ban too thats why i need it ore if i manually just ban a host then script should unban host and ban ident instead of host , its just unban host but didn't ban ident

psykoo  -  Nov 28, 2018

If you want to ban the host, then you don't need this script at all.

Also, when it unbans the host, it will be waiting for a irccloud user to get kicked so it can ban the ident. The script CANNOT guess who you plan to ban. Most host bans on irccloud users will affect 2-3-5-10 users... without a kick it won't know which ident to ban.

sherazzun  -  Nov 29, 2018

but i see i user who have script same as i demand , maybe he is using 2 scripts to manager it that's why i m asking the same

xplo  -  Apr 04, 2019

im using this :D

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.