--- 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);
}