fixed small invalid mode bug with "-k" and a crash bug in event_neonspam_chanmsg.c