summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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
{