]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/mod-webtv.c
remove some debug chatter
[irc/evilnet/x3.git] / src / mod-webtv.c
index f5eddd64f92c7862199e943b9c55570f9946fc77..a66c26e9c2c58c5b53848fba158ef3143d32672e 100644 (file)
@@ -5,7 +5,7 @@
  *
  * x3 is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -403,7 +403,7 @@ webtv_init(void)
     WB_LOG = log_register_type("WebTV", "file:webtv.log");
 
     conf_register_reload(webtv_conf_read);
-    reg_exit_func(webtv_cleanup);
+    reg_exit_func(webtv_cleanup, NULL);
 
     webtv_module = module_register("WebTV", WB_LOG, "mod-webtv.help", NULL);
     modcmd_register(webtv_module, "nick",  cmd_nick,  1, 0, NULL);
@@ -434,7 +434,7 @@ webtv_finalize(void) {
     if (str) {
         webtv = webtv_conf.bot;
         const char *modes = conf_get_data("modules/webtv/modes", RECDB_QSTRING);
-        webtv = AddService(str, modes ? modes : NULL, "WebTV IRC Service", NULL);
+        webtv = AddLocalUser(str, str, NULL, "WebTV IRC Service", modes);
     } else {
         log_module(WB_LOG, LOG_ERROR, "database_get_data for webtv_conf.bot failed!");
         exit(1);