X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/6f8dfee93689c0bff152f0ea035f37fdd4041652..28aa186de14dc4fa7488866e70beb6ae933dde79:/chanprofile/chanprofile.c?ds=sidebyside diff --git a/chanprofile/chanprofile.c b/chanprofile/chanprofile.c index aec6f775..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 @@ -24,7 +27,7 @@ struct chanprofile *getcprec(nick *np) { for (i=0;ichannels->cursi;i++) { clen+=cs[i]->index->name->length; - hash ^= (unsigned int )cs[i]; + hash ^= (unsigned long)cs[i]; } mhash=hash%CPHASHSIZE; @@ -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]); } }