]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanfilter.cpp
Fix an inverted condition in the cgiirc module.
[user/henk/code/inspircd.git] / src / modules / m_chanfilter.cpp
index 55b6d3d2f649abe0a7034839acf80166920fb6cf..903aab33a8eeb2f5f2e724a0225a6188849152b1 100644 (file)
@@ -116,14 +116,14 @@ class ModuleChanFilter : public Module
                                {
                                        if (!notifyuser)
                                        {
-                                               details.echooriginal = true;
+                                               details.echo_original = true;
                                                return MOD_RES_DENY;
                                        }
 
                                        if (hidemask)
                                                user->WriteNumeric(ERR_CANNOTSENDTOCHAN, chan->name, "Cannot send to channel (your message contained a censored word)");
                                        else
-                                               user->WriteNumeric(ERR_CANNOTSENDTOCHAN, chan->name, i->mask, "Cannot send to channel (your message contained a censored word)");
+                                               user->WriteNumeric(ERR_CANNOTSENDTOCHAN, chan->name, "Cannot send to channel (your message contained a censored word: " + i->mask + ")");
                                        return MOD_RES_DENY;
                                }
                        }