summaryrefslogtreecommitdiff
path: root/src/modules/m_services.cpp
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-24 14:19:47 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-24 14:19:47 +0000
commit7e6328fb85cc515f92df746a87b9a2b7402a2498 (patch)
tree8474f5b09109b8ac8f4b0b2b5f4f0a1a74db1773 /src/modules/m_services.cpp
parent126ba7c6009a795846b25f11aa4271efa7d7aa9a (diff)
Fix to bug #27
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@892 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_services.cpp')
-rw-r--r--src/modules/m_services.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp
index 95d0436e1..52d0c0baa 100644
--- a/src/modules/m_services.cpp
+++ b/src/modules/m_services.cpp
@@ -48,7 +48,14 @@ 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)))
{
- return 1;
+ // 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;
+ }
}
else
{