]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/modules.c
Send numeric 735 on MLOCK policy-restricted mode changes that are ignored.
[irc/rqf/shadowircd.git] / src / modules.c
index 43a2f514ba450bd8d1daca4a6beaa7a614a08d19..44db3fbea57d5e02d4e619b700e7e72422ce3b6d 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: modules.c 3161 2007-01-25 07:23:01Z nenolod $
  */
 
 #include "stdinc.h"
@@ -58,6 +57,7 @@
 struct module **modlist = NULL;
 
 static const char *core_module_table[] = {
+       "m_ban",
        "m_die",
        "m_error",
        "m_join",
@@ -880,7 +880,7 @@ unload_one_module(const char *name, int warn)
        dlclose(modlist[modindex]->address);
 
        rb_free(modlist[modindex]->name);
-       memcpy(&modlist[modindex], &modlist[modindex + 1],
+       memmove(&modlist[modindex], &modlist[modindex + 1],
               sizeof(struct module) * ((num_mods - 1) - modindex));
 
        if(num_mods != 0)