return count;
}
+/*
+ * clean_key: returns a "cleaned" version of the key like ircu does.
+ *
+ * Note that s is a signed char, so we are basically allowing everything from 33-127 except : or ,
+ *
+ * Unlike ircu we don't check against KEYLEN here, this is done elsewhere.
+ */
+void clean_key(char *key) {
+ while (*key) {
+ if (*key<=32 || *key==':' || *key==',') {
+ *key=0;
+ return;
+ }
+ }
+}
void addordelnick(int hooknum, void *arg);
void onconnect(int hooknum, void *arg);
unsigned int countuniquehosts(channel *cp);
+void clean_key(char *s);
/* functions from channelhandlers.c */
int handleburstmsg(void *source, int cargc, char **cargv);