CVSROOT    : /home/coder-com/cvs
Module     : ircu2.10
Branch tags: u2_10_11
Commit time: 2002-08-27 00:31:50 UTC

Modified files:
  Tag: u2_10_11
     ChangeLog ircd/m_opmode.c

Log message:

Author: Kev <[EMAIL PROTECTED]>
Log message:

Permit an oper to use /opmode from off the channel.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.117 ircu2.10/ChangeLog:1.290.2.118
--- ircu2.10/ChangeLog:1.290.2.117      Sat Aug 24 11:08:47 2002
+++ ircu2.10/ChangeLog  Mon Aug 26 19:31:39 2002
@@ -1,3 +1,8 @@
+2002-08-26  Kevin L Mitchell  <[EMAIL PROTECTED]>
+
+       * ircd/m_opmode.c (mo_opmode): don't require opers to be on the
+       channel to use /opmode
+
 2002-08-24  Kevin L Mitchell  <[EMAIL PROTECTED]>
 
        * include/patchlevel.h (PATCHLEVEL): release rc2
Index: ircu2.10/ircd/m_opmode.c
diff -u ircu2.10/ircd/m_opmode.c:1.10.2.1 ircu2.10/ircd/m_opmode.c:1.10.2.2
--- ircu2.10/ircd/m_opmode.c:1.10.2.1   Fri May 17 11:42:19 2002
+++ ircu2.10/ircd/m_opmode.c    Mon Aug 26 19:31:40 2002
@@ -21,7 +21,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_opmode.c,v 1.10.2.1 2002/05/17 16:42:19 kev Exp $
+ * $Id: m_opmode.c,v 1.10.2.2 2002/08/27 00:31:40 kev Exp $
  */
 
 /*
@@ -138,7 +138,6 @@
 {
   struct Channel *chptr = 0;
   struct ModeBuf mbuf;
-  struct Membership *member;
   char *chname, *qreason;
   int force = 0;
 
@@ -163,9 +162,6 @@
 
   if (('#' != *chname && '&' != *chname) || !(chptr = FindChannel(chname)))
     return send_reply(sptr, ERR_NOSUCHCHANNEL, chname);
-
-  if (!(member = find_member_link(chptr, sptr)))
-    return send_reply(sptr, ERR_NOTONCHANNEL, chptr->chname);
 
   if (!force && (qreason = find_quarantine(chptr->chname)))
     return send_reply(sptr, ERR_QUARANTINED, chptr->chname, qreason);
----------------------- End of diff -----------------------

Reply via email to