From 3e6a6891a1f6c2eee8390b1663bfdf7cf1c5f441 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 18 Jun 2008 21:58:43 +0200 Subject: [PATCH] Get rid of ", " at the start of some oper privs strings. --- src/s_newconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_newconf.c b/src/s_newconf.c index 1c3c019..af81101 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));