1095 |
static char privs_out[IRCD_BUFSIZE]; |
static char privs_out[IRCD_BUFSIZE]; |
1096 |
char *privs_ptr = privs_out; |
char *privs_ptr = privs_out; |
1097 |
|
|
|
*privs_ptr = '0'; |
|
|
|
|
1098 |
for (const struct oper_privs *opriv = flag_list; opriv->flag; ++opriv) |
for (const struct oper_privs *opriv = flag_list; opriv->flag; ++opriv) |
1099 |
if (port & opriv->flag) |
if (port & opriv->flag) |
1100 |
*privs_ptr++ = opriv->c; |
*privs_ptr++ = opriv->c; |
1101 |
|
|
1102 |
|
if (privs_ptr == privs_out) |
1103 |
|
*privs_ptr++ = '0'; |
1104 |
|
|
1105 |
*privs_ptr = '\0'; |
*privs_ptr = '\0'; |
1106 |
|
|
1107 |
return privs_out; |
return privs_out; |