]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_message.c
Update NEWS.
[irc/rqf/shadowircd.git] / modules / core / m_message.c
index fc0896ff39a7ed845f1d1cc93f3c2f39ee2f939e..f22450db4aa733942597dafac9eeac1f2b6de581 100644 (file)
@@ -477,7 +477,8 @@ msg_channel(int p_or_n, const char *command,
        }
        else if(chptr->mode.mode & MODE_OPMODERATE &&
                        chptr->mode.mode & MODE_MODERATED &&
-                       IsMember(source_p, chptr))
+                       (!(chptr->mode.mode & MODE_NOPRIVMSGS) ||
+                        IsMember(source_p, chptr)))
        {
                /* only do +z for +m channels for now, as bans/quiets
                 * aren't tested for remote clients -- jilles */
@@ -916,7 +917,6 @@ handle_special(int p_or_n, const char *command, struct Client *client_p,
        struct Client *target_p;
        char *server;
        char *s;
-       int count;
 
        /* user[%host]@server addressed?
         * NOTE: users can send to user@server, but not user%host@server
@@ -931,8 +931,6 @@ handle_special(int p_or_n, const char *command, struct Client *client_p,
                        return;
                }
 
-               count = 0;
-
                if(!IsOper(source_p))
                {
                        if(strchr(nick, '%') || (strncmp(nick, "opers", 5) == 0))