Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-05-20 14:16:09 UTC
Modified files:
Tag: u2_10_12_branch
ircd/m_privs.c ChangeLog
Log message:
Fix SF#1704424 by sending ERR_NOSUCHNICK as wiebe suggests.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.188 ircu2.10/ChangeLog:1.710.2.189
--- ircu2.10/ChangeLog:1.710.2.188 Sun May 20 07:10:30 2007
+++ ircu2.10/ChangeLog Sun May 20 07:15:58 2007
@@ -1,5 +1,10 @@
2007-05-20 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/m_privs.c (mo_privs): Report "no such nickname" for unknown
+ nicks in the list. (Unfortunately, the nick is lost before ms_privs.)
+
+2007-05-20 Michael Poole <[EMAIL PROTECTED]>
+
* ircd/listener.c (show_ports): Actually hide hidden ports from
clients that should not see them.
Index: ircu2.10/ircd/m_privs.c
diff -u ircu2.10/ircd/m_privs.c:1.6.2.1 ircu2.10/ircd/m_privs.c:1.6.2.2
--- ircu2.10/ircd/m_privs.c:1.6.2.1 Mon Mar 5 18:35:24 2007
+++ ircu2.10/ircd/m_privs.c Sun May 20 07:15:58 2007
@@ -22,7 +22,7 @@
*/
/** @file
* @brief Report operators' privileges to others
- * @version $Id: m_privs.c,v 1.6.2.1 2007/03/06 02:35:24 entrope Exp $
+ * @version $Id: m_privs.c,v 1.6.2.2 2007/05/20 14:15:58 entrope Exp $
*/
#include "config.h"
@@ -59,7 +59,7 @@
for (name = ircd_strtok(&p, parv[i], " "); name;
name = ircd_strtok(&p, 0, " ")) {
if (!(acptr = FindUser(name)))
- continue;
+ send_reply(sptr, ERR_NOSUCHNICK, name);
else if (MyUser(acptr))
client_report_privs(sptr, acptr);
else
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches