diff --git a/ircd/ircd_parser.y b/ircd/ircd_parser.y index d1dee1b2f..86ce21eb8 100644 --- a/ircd/ircd_parser.y +++ b/ircd/ircd_parser.y @@ -291,7 +291,7 @@ loadmodule: char *m_bn; m_bn = rb_basename((char *) $2); - if (findmodule_byname(m_bn) == -1) + if (findmodule_byname(m_bn) == NULL) { load_one_module($2, MAPI_ORIGIN_EXTENSION, 0); }