]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanprofile/chanprofile.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / chanprofile / chanprofile.c
index e371a200c98d5e90192eb95dfa293a0aac4f02cb..57fe6d6e851febc1aa602b328115d4b4a77dbaa5 100644 (file)
@@ -3,6 +3,9 @@
 #include "../channel/channel.h"
 #include "../control/control.h"
 #include "../newsearch/newsearch.h"
+#include "../lib/version.h"
+
+MODULE_VERSION("");
 
 #include <stdio.h>
 #include <string.h>
@@ -109,7 +112,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 +140,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]);
   }
 }