X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/fa14012da55d8fa4b8d79b164ada9c354aeefbc9..28aa186de14dc4fa7488866e70beb6ae933dde79:/chanprofile/chanprofile.c diff --git a/chanprofile/chanprofile.c b/chanprofile/chanprofile.c index e371a200..57fe6d6e 100644 --- a/chanprofile/chanprofile.c +++ b/chanprofile/chanprofile.c @@ -3,6 +3,9 @@ #include "../channel/channel.h" #include "../control/control.h" #include "../newsearch/newsearch.h" +#include "../lib/version.h" + +MODULE_VERSION(""); #include #include @@ -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;iclones;i++) { - printnick(sender,cpp->nicks[i]); + printnick(&ctx, sender,cpp->nicks[i]); } }