]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
[svn] Merge old trunk r2817:
authorjilles <redacted>
Wed, 28 Mar 2007 14:54:10 +0000 (07:54 -0700)
committerjilles <redacted>
Wed, 28 Mar 2007 14:54:10 +0000 (07:54 -0700)
WHOIS: Show the given nick in ERR_NOSUCHNICK even if it
starts with a digit. This is safe because the last
parameter is a nick and never a UID. (The first parameter
in a server-server two-param whois is a UID/SID.)

ChangeLog
include/serno.h
modules/m_whois.c

index 1d8c61bc7e852346d02d0b65b07a2e7e183d0f57..4a7fc85b40f280a5108b77ef7ce894419370cece 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+jilles      2007/03/28 14:49:48 UTC    (20070328-3297)
+  Log:
+  Merge old trunk r2779,r2785:
+  Show correct privilege name in a few ERR_NOPRIVS numerics.
+  
+
+  Changes:     Modified:
+  +1 -1                trunk/extensions/m_ojoin.c (File Modified) 
+  +1 -1                trunk/extensions/m_opme.c (File Modified) 
+  +2 -2                trunk/unsupported/m_force.c (File Modified) 
+
+
 jilles      2007/03/28 14:45:46 UTC    (20070328-3295)
   Log:
   Merge old trunk r2695:
index 90085ad43522f6ecbd5714a39d712474d2eb8485..aec2fcbe9b9a708a92e7c71a1445c9621cdbcbd1 100644 (file)
@@ -1 +1 @@
-#define SERNO "20070328-3295"
+#define SERNO "20070328-3297"
index c139c29367404380b5b3f5089a153e54076ff30a..9d9490af8e2a266aad426db1bebba6acbb27a1b0 100644 (file)
@@ -21,7 +21,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_whois.c 3287 2007-03-28 13:49:57Z jilles $
+ *  $Id: m_whois.c 3299 2007-03-28 14:54:10Z jilles $
  */
 
 #include "stdinc.h"
@@ -67,7 +67,7 @@ mapi_hlist_av1 whois_hlist[] = {
        { NULL, NULL }
 };
 
-DECLARE_MODULE_AV1(whois, NULL, NULL, whois_clist, whois_hlist, NULL, "$Revision: 3287 $");
+DECLARE_MODULE_AV1(whois, NULL, NULL, whois_clist, whois_hlist, NULL, "$Revision: 3299 $");
 
 /*
  * m_whois
@@ -210,7 +210,7 @@ do_whois(struct Client *client_p, struct Client *source_p, int parc, const char
        else
                sendto_one_numeric(source_p, ERR_NOSUCHNICK,
                                   form_str(ERR_NOSUCHNICK), 
-                                  IsDigit(*nick) ? "*" : nick);
+                                  nick);
 
        sendto_one_numeric(source_p, RPL_ENDOFWHOIS, 
                           form_str(RPL_ENDOFWHOIS), parv[1]);