Committer : klmitch
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2008-03-20 17:41:10 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog include/client.h
Log message:
Author: Kev <[EMAIL PROTECTED]>
Log message:
Make ircu do the right thing if it sees a remote client with user mode +O--
namely, don't show "is an IRC Operator", etc. First step in a multi-phase
upgrade to allow local operators to be acknowledged across the net.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.229 ircu2.10/ChangeLog:1.710.2.230
--- ircu2.10/ChangeLog:1.710.2.229 Fri Mar 14 22:33:22 2008
+++ ircu2.10/ChangeLog Thu Mar 20 10:40:59 2008
@@ -1,3 +1,9 @@
+2008-03-20 Kevin L. Mitchell <[EMAIL PROTECTED]>
+
+ * include/client.h: IsLocOp() now checks to see if its MyUser() as
+ well; IsAnOper() uses IsOper() and IsLocOp() instead of directly
+ testing the flags
+
2008-03-15 Michael Poole <[EMAIL PROTECTED]>
* ircd/s_bsd.c (init_connection_limits): Remove errant apostrophe.
Index: ircu2.10/include/client.h
diff -u ircu2.10/include/client.h:1.48.2.1 ircu2.10/include/client.h:1.48.2.2
--- ircu2.10/include/client.h:1.48.2.1 Wed Feb 15 19:49:54 2006
+++ ircu2.10/include/client.h Thu Mar 20 10:41:00 2008
@@ -19,7 +19,7 @@
*/
/** @file
* @brief Structures and functions for handling local clients.
- * @version $Id: client.h,v 1.48.2.1 2006/02/16 03:49:54 entrope Exp $
+ * @version $Id: client.h,v 1.48.2.2 2008/03/20 17:41:00 klmitch Exp $
*/
#ifndef INCLUDED_client_h
#define INCLUDED_client_h
@@ -531,7 +531,7 @@
#define HasFlag(cli, flag) FlagHas(&cli_flags(cli), flag)
/** Return non-zero if the client is an IRC operator (global or local). */
-#define IsAnOper(x) (HasFlag(x, FLAG_OPER) || HasFlag(x,
FLAG_LOCOP))
+#define IsAnOper(x) (IsOper(x) || IsLocOp(x))
/** Return non-zero if the client's connection is blocked. */
#define IsBlocked(x) HasFlag(x, FLAG_BLOCKED)
/** Return non-zero if the client's connection is still being burst. */
@@ -555,8 +555,8 @@
#define IsInvisible(x) HasFlag(x, FLAG_INVISIBLE)
/** Return non-zero if the client caused a net.burst. */
#define IsJunction(x) HasFlag(x, FLAG_JUNCTION)
-/** Return non-zero if the client has set mode +O (local operator). */
-#define IsLocOp(x) HasFlag(x, FLAG_LOCOP)
+/** Return non-zero if the client has set mode +O (local operator) locally. */
+#define IsLocOp(x) (MyUser(x) && HasFlag(x, FLAG_LOCOP))
/** Return non-zero if the client has set mode +o (global operator). */
#define IsOper(x) HasFlag(x, FLAG_OPER)
/** Return non-zero if the client has an active UDP ping request. */
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches