As posted above the percentage alias does not work.
I could see problems and obvious ways to shorten it before I ever copy and tested it. As a matter of fact, I never tested the whole snippet. I read it, copied and tested what I saw to fix and improve, and posted back my suggestions. There may still be other issues other that what I saw quickly and replied to. The first post I didn't put the {brackets} because I never bothered to test that simple line. The percentage alias was the only part I actually copy and tested and edited inside the mIRC editor, this is probably a common approach for the dozen or so members that read new postings.
Simple as that. No haha, no lol.
if ($2 == 366) { if (%kabus) && (!%kick) .KickerJef $sock(*,%sockjef) }
if ($2 == 482) { if (!%kick) { %kick = 1 } }
could be simplified as:
if $2 == 366 && %kabus && !%kick { .KickerJef $sock(*,%sockjef) }
if $2 == 482 && !%kick { %kick = 1 }