]> jfr.im git - irc/quakenet/newserv.git/blobdiff - channel/channel.c
LUA: add function for channel chanop notice
[irc/quakenet/newserv.git] / channel / channel.c
index cf875d4bf2d75dab0860854bb94ebef57e8d1743..b5cd2ad6c652b23c7a92fe824ab1d4642983ddbc 100644 (file)
@@ -16,7 +16,7 @@
 
 MODULE_VERSION("");
 
-#define channelhash(x)  (crc32i(x)%CHANNELHASHSIZE)
+#define channelhash(x)  (irc_crc32i(x)%CHANNELHASHSIZE)
 
 unsigned long nouser;
 
@@ -50,7 +50,7 @@ void _init() {
    * before we register all our hooks which would otherwise get called
    * during the disconnect. */
   if (connected) { 
-    irc_send("%s SQ %s 0 :Resync [adding channel support]",mynumeric->content,myserver->content); irc_disconnected();
+    irc_send("%s SQ %s 0 :Resync [adding channel support]",mynumeric->content,myserver->content); irc_disconnected(0);
   }
 
   /* Set up our hooks */