From 0825e274f6e047c3e948334b8fdbc0189dba3e32 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 24 Mar 2005 19:05:43 +0000 Subject: Finally fixed a load of umode change stuff! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@897 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_services.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp index 878724168..dd1506717 100644 --- a/src/modules/m_services.cpp +++ b/src/modules/m_services.cpp @@ -48,14 +48,7 @@ class ModuleServices : public Module // only a u-lined server may add or remove the +r mode. if ((Srv->IsUlined(user->nick)) || (Srv->IsUlined(user->server))) { - // FCS - BugFix for #27 :) - if ((!strchr(user->modes,'r')) && (mode_on == false)) { - return 1; - } else if ((strchr(user->modes,'r')) && (mode_on == true)) { - return 1; - } else { - return 0; - } + return 1; } else { @@ -64,13 +57,13 @@ class ModuleServices : public Module } else { - if (!strcmp(user->server,"")) + if ((Srv->IsUlined(user->nick)) || (Srv->IsUlined(user->server)) || (!strcmp(user->server,""))) { return 1; } else { - Srv->SendServ(user->fd,"500 "+std::string(user->nick)+" :Only a server may modify the +r user mode"); + Srv->SendServ(user->fd,"500 "+std::string(user->nick)+" :Only a U-Lined server may modify the +r user mode"); } } } -- cgit v1.2.3