For the chanz alias, if you already know about the $istok(), why not take advantage of the $istokcs(), the case sensitive version for this line:> if (s isincs $chan(%channelcounter).mode) || (O isincs $chan(%channelcounter).mode) || (A isincs $chan(%channelcounter).mode) || (p isincs $chan(%channelcounter).mode) {It can be shortened to this:
if ($istokcs(s O A p,$chan(%channelcounter).mode,32)) {