From cc91e5fde358ffa01e62b6ff418c80c198f8f25d Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 13 Feb 2004 20:49:43 +0000 Subject: [PATCH] - Ouch!! Fixed a severe bug which caused opers not being recognized on remote servers causing various problems... This was caused by a change 1-2 days ago. Reported by Rocko (#0001537). --- Changes | 3 +++ src/umodes.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 8e4da3682..64582ea3c 100644 --- a/Changes +++ b/Changes @@ -2855,3 +2855,6 @@ seen. gmtime warning still there (hint hint.. ;) - Added missing lines to include/setup.h.in for snprintf, vsnprintf, strlcpy, strlcat, and strlncat. Should fix #0001510 (for real this time). +- Ouch!! Fixed a severe bug which caused opers not being recognized on remote + servers causing various problems... This was caused by a change 1-2 days ago. + Reported by Rocko (#0001537). diff --git a/src/umodes.c b/src/umodes.c index 93364041d..9411e25b0 100644 --- a/src/umodes.c +++ b/src/umodes.c @@ -387,7 +387,10 @@ int umode_allow_all(aClient *sptr, int what) int umode_allow_opers(aClient *sptr, int what) { - return IsAnOper(sptr) ? 1 : 0; + if (MyClient(sptr)) + return IsAnOper(sptr) ? 1 : 0; + else + return 1; } void unload_all_unused_umodes()