aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_restrictmsg.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2015-05-10 19:20:06 +0200
committerGravatar Attila Molnar2015-05-10 19:20:06 +0200
commit6fe1f4e1136f2ab95a88e68af1894bf6002d03f4 (patch)
tree629087a858ee07070ff7c1d957ff500c7ca10398 /src/modules/m_restrictmsg.cpp
parentMerge branch 'master+whoiscontext' (diff)
parentRelease v2.0.20 (diff)
Merge insp20
Diffstat (limited to 'src/modules/m_restrictmsg.cpp')
-rw-r--r--src/modules/m_restrictmsg.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp
index e0887e587..279775d48 100644
--- a/src/modules/m_restrictmsg.cpp
+++ b/src/modules/m_restrictmsg.cpp
@@ -33,8 +33,9 @@ class ModuleRestrictMsg : public Module
// message allowed if:
// (1) the sender is opered
// (2) the recipient is opered
+ // (3) the recipient is on a ulined server
// anything else, blocked.
- if (u->IsOper() || user->IsOper())
+ if (u->IsOper() || user->IsOper() || u->server->IsULine())
{
return MOD_RES_PASSTHRU;
}