]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_notice.cpp
Added preliminary m_antibear.cpp, a security module to cripple bear.txt based trojan...
[user/henk/code/inspircd.git] / src / cmd_notice.cpp
index 6e894e6a45b1a6ca18a2735c5019d889cf134d2d..1adb43923004829673ea243f73ed19f6cc434ea6 100644 (file)
@@ -94,12 +94,12 @@ void cmd_notice::Handle (char **parameters, int pcnt, userrec *user)
                {
                        if (IS_LOCAL(user))
                        {
-                               if ((chan->custom_modes[CM_NOEXTERNAL]) && (!chan->HasUser(user)))
+                               if ((chan->modes[CM_NOEXTERNAL]) && (!chan->HasUser(user)))
                                {
                                        WriteServ(user->fd,"404 %s %s :Cannot send to channel (no external messages)", user->nick, chan->name);
                                        return;
                                }
-                               if ((chan->custom_modes[CM_MODERATED]) && (cstatus(user,chan)<STATUS_VOICE))
+                               if ((chan->modes[CM_MODERATED]) && (cstatus(user,chan)<STATUS_VOICE))
                                {
                                        WriteServ(user->fd,"404 %s %s :Cannot send to channel (+m)", user->nick, chan->name);
                                        return;