]> jfr.im git - solanum.git/commitdiff
Forgot to test the bitmask, oops.
authorWilliam Pitcock <redacted>
Sun, 8 Jun 2008 07:13:26 +0000 (02:13 -0500)
committerWilliam Pitcock <redacted>
Sun, 8 Jun 2008 07:13:26 +0000 (02:13 -0500)
src/s_newconf.c

index 86d20b93d16fc834e356cd0eb758abc7f8cec317..fa51336ad0fbb42a1ed39ac2d10796aed35f6730 100644 (file)
@@ -356,12 +356,13 @@ get_oper_privs(int flags)
        *p = '\0';
 
        for(i = 0; oper_flagtable[i].flag; i++)
-       {
-               if(i)
-                       rb_strlcat(buf, ", ", sizeof(buf));
+               if (flags & oper_flagtable[i].flag)
+               {
+                       if(i)
+                               rb_strlcat(buf, ", ", sizeof(buf));
 
-               rb_strlcat(buf, oper_flagtable[i].name, sizeof(buf));
-       }
+                       rb_strlcat(buf, oper_flagtable[i].name, sizeof(buf));
+               }
 
        return buf;
 }