In fact it almost already did support multibans, as on ban|unban triggers once for each ban set|unset. The $2 needs to be $banmask for it to work though.

- on me:*:ban:#:inc -u3600 $+(%,myban.,#,$cid,$banmask)
on @!*:unban:#:if $($+(%,myban.,#,$cid,$banmask),2) { mode # b $banmask }
Using $N it will set the vars N times, and try to re-ban N times also.