Forráskód Böngészése

* Was sending too many params to reply() !

svn: 945
Bryan Drewery 22 éve
szülő
commit
755714aa49
2 módosított fájl, 6 hozzáadás és 5 törlés
  1. 1 0
      doc/UPDATES
  2. 5 5
      src/mod/irc.mod/msgcmds.c

+ 1 - 0
doc/UPDATES

@@ -15,6 +15,7 @@ This is a summary of ChangeLog basically.
 11.Fixed cmd_botcmd not matching '?' correctly again!
 12.Added console settings for what to show on login: banner, channels, bots, whom.
 13.Changed default .color to on, and all of the new settings are default on as well.
+14.Several msgc cmds were replying incorrectly, fixed.
 
 1.1.5
 

+ 5 - 5
src/mod/irc.mod/msgcmds.c

@@ -578,9 +578,9 @@ static int msgc_channels(char *nick, char *host, struct userrec *u, char *par, c
   }
 
   if (list[0]) 
-    reply(nick, NULL, "You have access to: %s\n", nick, list);
+    reply(nick, NULL, "You have access to: %s\n", list);
   else
-    reply(nick, NULL, "You do not have access to any channels.\n", nick);
+    reply(nick, NULL, "You do not have access to any channels.\n");
 
   return BIND_RET_BREAK;
 }
@@ -603,9 +603,9 @@ static int msgc_getkey(char *nick, char *host, struct userrec *u, char *par, cha
     get_user_flagrec(u, &fr, chan->dname);
     if (chk_op(fr, chan)) {
       if (chan->channel.key[0]) {
-        reply(nick, NULL, "Key for %s is: %s\n", nick, chan->name, chan->channel.key);
+        reply(nick, NULL, "Key for %s is: %s\n", chan->name, chan->channel.key);
       } else {
-        reply(nick, NULL, "%s has no key set.\n", nick, chan->name);
+        reply(nick, NULL, "%s has no key set.\n", chan->name);
       }
     }
   }
@@ -655,7 +655,7 @@ static int msgc_sha1(char *nick, char *host, struct userrec *u, char *par, char
   if (chname && chname[0])
     chan = findchan_by_dname(chname);  
 
-  reply(nick, chan, "SHA1(%s) = %s\n", nick, par, SHA1(par));
+  reply(nick, chan, "SHA1(%s) = %s\n", par, SHA1(par));
   return BIND_RET_BREAK;
 }