Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-05-20 13:56:09 UTC

Modified files:
  Tag: u2_10_12_branch
     ircd/m_connect.c ChangeLog

Log message:

Fix SF#1701350 by taking weibe's suggestion action (reporting insufficient 
privileges).

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.185 ircu2.10/ChangeLog:1.710.2.186
--- ircu2.10/ChangeLog:1.710.2.185      Sun May 20 06:50:38 2007
+++ ircu2.10/ChangeLog  Sun May 20 06:55:59 2007
@@ -1,5 +1,10 @@
 2007-05-20  Michael Poole <[EMAIL PROTECTED]>
 
+       * ircd/m_connect.c (mo_connect): Return an error to a locop who
+       tries to do a remote connect.
+
+2007-05-20  Michael Poole <[EMAIL PROTECTED]>
+
        * ircd/parse.c (msgtab): Make SETTIME consistent with other
        oper commands, in using m_not_oper for non-opered clients.
 
Index: ircu2.10/ircd/m_connect.c
diff -u ircu2.10/ircd/m_connect.c:1.17 ircu2.10/ircd/m_connect.c:1.17.2.1
--- ircu2.10/ircd/m_connect.c:1.17      Fri Dec 10 21:13:46 2004
+++ ircu2.10/ircd/m_connect.c   Sun May 20 06:55:59 2007
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_connect.c,v 1.17 2004/12/11 05:13:46 klmitch Exp $
+ * $Id: m_connect.c,v 1.17.2.1 2007/05/20 13:55:59 entrope Exp $
  */
 
 /*
@@ -247,15 +247,14 @@
       /*
        * Only allow LocOps to make local CONNECTS --SRB
        */
-      return 0;
+      return send_reply(cptr, ERR_NOPRIVILEGES);
     }
     else {
       struct Client* acptr2;
       struct Client* acptr3;
 
       if (!(acptr3 = find_match_server(parv[3]))) {
-        send_reply(sptr, ERR_NOSUCHSERVER, parv[3]);
-        return 0;
+        return send_reply(sptr, ERR_NOSUCHSERVER, parv[3]);
       }
 
       /*
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to