]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_mode.c
Fix order on channel_mlock() call.
[irc/rqf/shadowircd.git] / modules / core / m_mode.c
index 1653b09b6176183598eccec05ec01dd4e57c1707..759a71d0eaf53b6fc24d1eb6f7825a174cb7cc2f 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_mode.c 1006 2006-03-09 15:32:14Z nenolod $
  */
 
 #include "stdinc.h"
@@ -42,6 +41,8 @@
 #include "packet.h"
 #include "s_newconf.h"
 
+struct module_modes ModuleModes;
+
 static int m_mode(struct Client *, struct Client *, int, const char **);
 static int ms_mode(struct Client *, struct Client *, int, const char **);
 static int ms_tmode(struct Client *, struct Client *, int, const char **);
@@ -66,7 +67,6 @@ DECLARE_MODULE_AV1(mode, NULL, NULL, mode_clist, NULL, NULL, "$Revision: 1006 $"
 
 /*
  * m_mode - MODE command handler
- * parv[0] - sender
  * parv[1] - channel
  */
 static int
@@ -260,7 +260,7 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, const char
 
        case 'q':
                banlist = &chptr->quietlist;
-               mode_type = CHFL_QUIET;
+               mode_type = ModuleModes.CHFL_QUIET;
                mems = ALL_MEMBERS;
                break;