|
|
@@ -656,8 +656,9 @@ static int msgc_help(Auth *a, char *chname, char *par)
|
|
|
table = bind_table_lookup("msgc");
|
|
|
|
|
|
for (entry = table->entries; entry && entry->next; entry = entry->next)
|
|
|
- if (((chname[0] && entry->flags & AUTH_CHAN) || (!chname[0] && entry->flags & AUTH_MSG)) && flagrec_ok(&entry->user_flags, &fr))
|
|
|
- simple_snprintf(outbuf, sizeof(outbuf), "%s%s%s", outbuf[0] ? outbuf : "", outbuf[0] ? " " : "", &entry->function_name[6]);
|
|
|
+ if (((chname && chname[0] && entry->cflags & AUTH_CHAN) ||
|
|
|
+ ((!chname || !chname[0]) && entry->cflags & AUTH_MSG)) && flagrec_ok(&entry->user_flags, &fr))
|
|
|
+ simple_snprintf(outbuf, sizeof(outbuf), "%s%s%s", outbuf[0] ? outbuf : "", outbuf[0] ? " " : "", entry->mask);
|
|
|
|
|
|
strncat(outbuf, "\n", sizeof(outbuf));
|
|
|
|