User is also LocOp if it has FLAG_LOCOP but isn't fully registered with the network...
authorpk910 <philipp@zoelle1.de>
Tue, 16 Aug 2011 14:26:09 +0000 (16:26 +0200)
committerpk910 <philipp@zoelle1.de>
Tue, 16 Aug 2011 14:35:20 +0000 (16:35 +0200)
include/client.h

index 20db7430013e16c1c68ee120e8902f79a8135d79..5d754bf1cfff2a706660a6b5036128f970aa9dcb 100644 (file)
@@ -601,7 +601,7 @@ struct Client {
 /** 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) locally. */
-#define IsLocOp(x)              (MyUser(x) && HasFlag(x, FLAG_LOCOP))
+#define IsLocOp(x)              (MyConnect(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. */