]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Correction, only need to be known on the channel to use USERS.
authorsplidge <redacted>
Thu, 13 Mar 2008 01:28:34 +0000 (01:28 +0000)
committersplidge <redacted>
Thu, 13 Mar 2008 01:28:34 +0000 (01:28 +0000)
Correction, USERS now only requires being known on the channel.
It doesn't reveal any information a known user can't already get by doing chanlev and whoising everyone.

chanserv/chancmds/users.c

index 94398d13b00b5039012e5266d9c3a6f81577613b..9a75c93e11bf1d7ee67990b3f56d6645a1f5f40a 100644 (file)
@@ -58,7 +58,7 @@ int csc_dousers(void *source, int cargc, char **cargv) {
     return CMD_ERROR;
   }
 
-  if (!(cip=cs_checkaccess(sender, cargv[0], CA_OPPRIV,
+  if (!(cip=cs_checkaccess(sender, cargv[0], CA_KNOWN,
                           NULL, "users", QPRIV_VIEWFULLCHANLEV, 0)))
     return CMD_ERROR;
   
@@ -103,7 +103,7 @@ int csc_dousers(void *source, int cargc, char **cargv) {
   
   qsort(theusers, j, sizeof(struct chanuserrec), comparetheflags);
   
-  chanservstdmessage(sender,QM_USERSHEADER, cip->name->content);
+  chanservstdmessage(sender, QM_USERSHEADER, cip->name->content);
   
   flagmask=QCUFLAGS_PUBLIC;
   ops=voices=users=flags=qops=masters=0;