I've deleted the linesep character, so this issue won't affect me. However, there's a larger grab-bag of things currently using the linesep, so if you delete it so you can selectively add it back in, you'd also need to trap other things, including DCC SEND/GET FAIL/COMPLETE, blue scripting errors, identifier warnings, ping/pong, ctcp, etc.
Also, while your usage of $count will work almost all the time, it's possible for a false match if the nick is asdfBotServ etc. A more precise way is
$istok(NickServ ChanServ MemoServ BotServ HostServ OperServ,$nick,32)