No, it's not, Joker. If someone sets +Q mode (with uppercase q) your example will trigger. You need to use the case sensitive version of
isincs
Just use
if ($chan)
rather than ($active == #)
If you want to make a comparison between active channel and PM. You can do:
if (!$chan) {
with a ! to indicate that it is not a channel.