]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-oppct.c
TRUSTS: require sqlite
[irc/quakenet/newserv.git] / newsearch / ns-oppct.c
index 0f835a85a16bfa3aaf7fb17343ff05af21a4baa7..7533b8b7f1da6eccf69b5a49d418e456e3f68276 100644 (file)
@@ -39,7 +39,7 @@ void *oppct_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) {
   
   for (i=0;i<cip->channel->users->hashsize;i++) {
     if (cip->channel->users->content[i]!=nouser) {
-      if (!(cip->channel->users->content[i] & CUMODE_OP)) {
+      if (cip->channel->users->content[i] & CUMODE_OP) {
         ops++;
       }
     }
@@ -49,6 +49,7 @@ void *oppct_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) {
 }
 
 void oppct_free(searchCtx *ctx, struct searchNode *thenode) {
+  ctx->reply(senderNSExtern, "Notice: oppct is deprecated by cumodepct");
   free(thenode);
 }