]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanprofile/chanprofile.c
fix bug in G stats
[irc/quakenet/newserv.git] / chanprofile / chanprofile.c
index aec6f7752d1a434819d147b0f4c6a08f6c85c716..b7316a22f463bb597e3492463f234b0242815273 100644 (file)
@@ -24,7 +24,7 @@ struct chanprofile *getcprec(nick *np) {
   
   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;
@@ -109,7 +109,8 @@ void reportprofile(nick *sender, struct chanprofile *cpp) {
   char buf[1024];
   unsigned int repwidth=80;
   unsigned int bufpos;
-  
+  searchCtx ctx;
+
   controlreply(sender,"============================================================");
 
   if (cpp->ccount==0) {
@@ -136,9 +137,10 @@ void reportprofile(nick *sender, struct chanprofile *cpp) {
     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]);
   }
 }