static void neonspam_event_chanmsg(struct UserNode *user, struct ChanNode *chan, char *message) {
struct ClientSocket *client = getChannelBot(chan, BOTID);
- if(!client) return; //we can't "see" this event
+ if(!client || (user->flags & USERFLAG_ISBOT)) return; //we can't "see" this event
loadNeonSpamSettings(chan);
struct NeonSpamSettings *settings = chan->spam_settings;
struct ChanUser *chanuser = getChanUser(user, chan);