fork extscripts to increase performance & ignore messages coming from bots (NeonSpam)
[NeonServV5.git] / src / event_neonspam_chanmsg.c
index f5035966ea9680e42a25729acdfd86535d5382db..c20065f617361f13bcd5a2176998282b6a6a21ea 100644 (file)
@@ -36,7 +36,7 @@ struct neonspam_event_chanmsg_cache {
 
 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);