Преглед изворни кода

* Fixed a bug in cmd_channels
* Added extort to CREDITS


svn: 694

Bryan Drewery пре 22 година
родитељ
комит
aa93c68cc9
3 измењених фајлова са 5 додато и 3 уклоњено
  1. 1 0
      doc/CREDITS
  2. 2 2
      doc/UPDATES
  3. 2 1
      src/cmds.c

+ 1 - 0
doc/CREDITS

@@ -7,6 +7,7 @@ Wraith botpack by bryan, with credits and thanks to the following:
 * SFC for providing compile shells, continuous input, feature suggestions, and testing.
 * xmage for beta testing.
 * passwd for beta testing, and his dedication to finding bugs.
+* extort for finding misc bugs.
 * pgpkeys for finding bugs, and providing input.
 * qFox for providing an mIRC $md5() alias, not requiring a dll or >6.03
 * Sith_Lord helping test ipv6 on the bot (admin@elitepackets.com)

+ 2 - 2
doc/UPDATES

@@ -10,8 +10,8 @@ This is a summary of ChangeLog basically.
 7.Removed define: AUTH, added: AUTHCMDS, AUTHHASH, DCCAUTH, see pack.cfg for details.
 8.Leaf binary now accepts -B <botnick>
 9.Bot is now much more portable.
-10.Removed defines: TCLPERMONLY, TCLCMDS.
-
+10.Fixed a bug in cmd_channels, was allowing to view higher flagged users.
+11.Added extort to CREDITS.
 
 1.0.15 (Non-Release Version)
 1.cmd_randstring is now limited to 300.

+ 2 - 1
src/cmds.c

@@ -618,6 +618,7 @@ static void cmd_about(struct userrec *u, int idx, char *par)
   dprintf(idx, STR(" * $bSFC$b for providing compile shells, continuous input, feature suggestions, and testing.\n"));
   dprintf(idx, STR(" * $bxmage$b for beta testing.\n"));
   dprintf(idx, STR(" * $bpasswd$b for beta testing, and his dedication to finding bugs.\n"));
+  dprintf(idx, STR(" * $bextort$b for finding misc bugs.\n"));
   dprintf(idx, STR(" * $bpgpkeys$b for finding bugs, and providing input.\n"));
   dprintf(idx, STR(" * $bqFox$b for providing an mIRC $md5() alias, not requiring a dll or >6.03\n"));
   dprintf(idx, STR(" * $bSith_Lord$b helping test ipv6 on the bot (admin@elitepackets.com)\n"));
@@ -1120,7 +1121,7 @@ static void cmd_channels(struct userrec *u, int idx, char *par) {
     struct userrec *user = NULL;
 
     user = get_user_by_handle(userlist, par);
-    if (user) {
+    if (user && whois_access(u, user)) {
       show_channels(idx, par);
     } else  {
       dprintf(idx, STR("There is no user by that name.\n"));