]> jfr.im git - solanum.git/commitdiff
Get rid of ", " at the start of some oper privs strings.
authorJilles Tjoelker <redacted>
Wed, 18 Jun 2008 19:58:43 +0000 (21:58 +0200)
committerJilles Tjoelker <redacted>
Wed, 18 Jun 2008 19:58:43 +0000 (21:58 +0200)
src/s_newconf.c

index 1c3c019b731b9ee67eb3006c167fa5234151c950..af81101009e6d7167807fe6577b1e41182469d31 100644 (file)
@@ -358,7 +358,7 @@ get_oper_privs(int flags)
        for(i = 0; oper_flagtable[i].flag; i++)
                if (flags & oper_flagtable[i].flag)
                {
-                       if(i)
+                       if(*buf != '\0')
                                rb_strlcat(buf, ", ", sizeof(buf));
 
                        rb_strlcat(buf, oper_flagtable[i].name, sizeof(buf));