From: Jilles Tjoelker Date: Wed, 18 Jun 2008 19:58:43 +0000 (+0200) Subject: Get rid of ", " at the start of some oper privs strings. X-Git-Url: https://jfr.im/git/solanum.git/commitdiff_plain/f8a8d16e52067070a131e6d71e8cc936cb19636f Get rid of ", " at the start of some oper privs strings. --- diff --git a/src/s_newconf.c b/src/s_newconf.c index 1c3c019b..af811010 100644 --- a/src/s_newconf.c +++ b/src/s_newconf.c @@ -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));