]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/mod-memoserv.c
improve stats routing command
[irc/evilnet/x3.git] / src / mod-memoserv.c
index 4c9011f4a38f2e3024c5af7d9d4ae3e8ae931d9b..2ede913e5765f027ee1a2d30293c35fce9844100 100644 (file)
@@ -1324,6 +1324,9 @@ memoserv_finalize(void) {
     str = database_get_data(conf_node, "bot", RECDB_QSTRING);
     if (str) {
         memoserv = memoserv_conf.bot;
+        const char *modes = conf_get_data("modules/memoserv/modes", RECDB_QSTRING);
+        memoserv = AddService(str, modes ? modes : NULL, "User-User Memorandum Services", NULL);
+
     } else {
         log_module(MS_LOG, LOG_ERROR, "database_get_data for memoserv_conf.bot failed!");
         exit(1);