Fix SF#1701350 by taking weibe's suggestion action (reporting insufficient privileges).
authorMichael Poole <mdpoole@troilus.org>
Sun, 20 May 2007 13:55:59 +0000 (13:55 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sun, 20 May 2007 13:55:59 +0000 (13:55 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1807 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_connect.c

index 5cecbbff2aa1fb895c93f20cb3340c71fb365149..09741f56a76795ef402e617d10b68ffad60a5f86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-20  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/m_connect.c (mo_connect): Return an error to a locop who
+       tries to do a remote connect.
+
 2007-05-20  Michael Poole <mdpoole@troilus.org>
 
        * ircd/parse.c (msgtab): Make SETTIME consistent with other
index d87b20a2249de990f7c43bbcb8ba9c54a35d8f62..ca4856d9d829bef15145e423787fb49ebaf0dbf0 100644 (file)
@@ -247,15 +247,14 @@ int mo_connect(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
       /*
        * 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]);
       }
 
       /*