src/main.c
changeset 8 3152de03758e
parent 6 7eb12be31bb5
child 9 aff6726b8b87
--- a/src/main.c
+++ b/src/main.c
@@ -29,12 +29,9 @@
 #define LOCALE_PATH "/var/lib/nobody/data/locale"
 #endif
 
-short active = 1;
-
 void sigproc ()
 {
     signal (SIGTERM, sigproc);
-    active = 0;
 }
 
 int main (int argc, char **argv)
@@ -105,7 +102,7 @@
         if ((command = irc_parsemessage (buf, &message))) {
             printf ("%10s %s %s\n", command, message.channel, message.line);
         } else {
-            if ((msg = parse (&message, &active)) != NULL) {
+            if ((msg = parse (&message)) != NULL) {
                 fprintf (message.stream, "%s\r\n", msg);
                 printf ("%10s %s", "WRITE", msg);
             }