]> jfr.im git - solanum.git/blobdiff - bandb/bandb.c
filter: add #defines for nick,user,host
[solanum.git] / bandb / bandb.c
index 71a425d770af211c2e81a9672e6c92b9b0d10aeb..769f6fe437b6b6430dbf20f20830368f537b128f 100644 (file)
@@ -236,6 +236,9 @@ parse_request(rb_helper *helper)
 }
 
 
+static void
+error_cb(rb_helper *helper) __attribute__((noreturn));
+
 static void
 error_cb(rb_helper *helper)
 {
@@ -282,13 +285,16 @@ setup_signals(void)
 }
 
 
+static void
+db_error_cb(const char *errstr) __attribute__((noreturn));
+
 static void
 db_error_cb(const char *errstr)
 {
        char buf[256];
        snprintf(buf, sizeof(buf), "! :%s", errstr);
        rb_helper_write(bandb_helper, "%s", buf);
-       rb_sleep(2 << 30, 0);
+       rb_sleep(1 << 30, 0);
        exit(1);
 }