import znc badwords = [ ":,3", ":,,3", ":c", ":C", ":<", "cry", "cries", "die", "suicide", "unalive", "hate", "malice", "sigh" ] class shutup(znc.Module): description = "Strip away swee's depression shit because he deserves it." module_types = [znc.CModInfo.GlobalModule] def OnUserTextMessage(self, msg): if self.GetUser().GetUsername() == "swee": text = msg.GetText() for word in text.split(): if word in badwords: return znc.HALT return znc.CONTINUE