]> jfr.im git - irc/quakenet/newserv.git/blobdiff - tutorbot/tutorbot.c
CHANSERV: don't delete the last user/channel to prevent id reuse
[irc/quakenet/newserv.git] / tutorbot / tutorbot.c
index 6d64f0a64ea8f71ffc9c2f563f1b33b3d06a06ec..4205318ae57cd9ecb89bbe03f65d1bbcf5772f51 100644 (file)
@@ -5,6 +5,9 @@
 #include "../localuser/localuserchannel.h"
 #include "../core/schedule.h"
 #include "../lib/irc_string.h"
+#include "../lib/version.h"
+
+MODULE_VERSION("");
 
 #include <stdio.h>
 
@@ -74,7 +77,7 @@ void tutorspam(void *arg) {
   spammsg *smp;
 
   if (tutornick && (cp=findchannel(PUBLICCHAN))) {
-    sendmessagetochannel(tutornick, cp, nextspam->message->content);
+    sendmessagetochannel(tutornick, cp, "%s", nextspam->message->content);
   }
   
   smp=nextspam;
@@ -330,7 +333,7 @@ void tutorhandler(nick *me, int type, void **args) {
          if (spamtime + SPAMINTERVAL < time(NULL)) {
            /* Spam it directly */
            if ((cp=findchannel(PUBLICCHAN))) {
-             sendmessagetochannel(me, cp, text);
+             sendmessagetochannel(me, cp, "%s", text);
            }
            spamtime=time(NULL);
          } else {