#include <sys/types.h>
#include <sys/stat.h>
-#include <netinet/in.h>
-
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#define WE_ARE_MEMORY_C
#include "stdinc.h"
#include "setup.h"
-#include "common.h"
#include "ircd_defs.h"
-#include "config.h"
+#include "defaults.h"
#include "client.h"
#include "modules.h"
#include "newconf.h"
%union {
int number;
- char string[IRCD_BUFSIZE + 1];
+ char string[BUFSIZE + 1];
conf_parm_t * conf_parm;
}
loadmodule:
LOADMODULE QSTRING
{
- char *m_bn;
-
- m_bn = rb_basename((char *) $2);
+ char *m_bn;
+ m_bn = rb_basename((char *) $2);
- if (findmodule_byname(m_bn) == -1)
- load_one_module($2, 0);
+ if (findmodule_byname(m_bn) == -1)
+ {
+ load_one_module($2, MAPI_ORIGIN_EXTENSION, 0);
+ }
- rb_free(m_bn);
+ rb_free(m_bn);
}
';'
;