فهرست منبع

* Fixed auth cmd: help.

svn: 2867
Bryan Drewery 20 سال پیش
والد
کامیت
a10b01d758
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 1 0
      doc/UPDATES
  2. 3 2
      src/mod/irc.mod/msgcmds.c

+ 1 - 0
doc/UPDATES

@@ -33,6 +33,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Bot handles are now restricted to 9 characters. (fixes #253)
 * Fixed hubs not preserving uptime when restarted.
 * Fixed hub flaw in cmd_uptime.
+* Fixed auth cmd: help.
 
 1.2.9 - http://tracker.shatow.net/milestone/1.2.9
 * Fixed cmd_[un]stick not properly using numbers for channel masks. (#160)

+ 3 - 2
src/mod/irc.mod/msgcmds.c

@@ -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));