#include "../channel/channel.h"
#include "../control/control.h"
#include "../newsearch/newsearch.h"
+#include "../lib/version.h"
+
+MODULE_VERSION("");
#include <stdio.h>
#include <string.h>
for (i=0;i<np->channels->cursi;i++) {
clen+=cs[i]->index->name->length;
- hash ^= (unsigned int )cs[i];
+ hash ^= (unsigned long)cs[i];
}
mhash=hash%CPHASHSIZE;
}
int cpcompare(const void *a, const void *b) {
- const struct chanprofile **cpa=a, **cpb=b;
+ const struct chanprofile **cpa=(const struct chanprofile **)a, **cpb=(const struct chanprofile **)b;
return (*cpb)->clones - (*cpa)->clones;
}
char buf[1024];
unsigned int repwidth=80;
unsigned int bufpos;
-
+ searchCtx ctx;
+
controlreply(sender,"============================================================");
if (cpp->ccount==0) {
controlreply(sender," %s",buf);
controlreply(sender,"Users (%u):",cpp->clones);
-
+
+ ctx.reply = controlreply;
for (i=0;i<cpp->clones;i++) {
- printnick(sender,cpp->nicks[i]);
+ printnick(&ctx, sender,cpp->nicks[i]);
}
}