From 86499a92b6ede0fc80ee36e14a2a248a088e5e43 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 2 Mar 2006 09:44:15 +0000 Subject: Extra checks that should prevent desyncs if you stuff up your type/class tags between servers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3413 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 44f6d0cc6..d6e44c494 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -201,13 +201,11 @@ bool userrec::HasPermission(std::string &command) char* savept; char* savept2; - // users on u-lined servers can completely bypass + // users on remote servers can completely bypass // all permissions based checks. - // - // of course, if this is sent to a remote server and this - // server is not ulined there, then that other server - // silently drops the command. - if (is_uline(this->server)) + // This prevents desyncs when one server has different + // type/class tags to another. + if (!IS_LOCAL(this)) return true; // are they even an oper at all? -- cgit v1.3.1-10-gc9f91