diff options
Diffstat (limited to 'src/modules/m_restrictmsg.cpp')
-rw-r--r-- | src/modules/m_restrictmsg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp index f960c65c8..c51ea4850 100644 --- a/src/modules/m_restrictmsg.cpp +++ b/src/modules/m_restrictmsg.cpp @@ -48,7 +48,7 @@ class ModuleRestrictMsg : public Module if (target_type == TYPE_USER) { userrec* u = (userrec*)dest; - if ((strchr(u->modes,'o')) || (strchr(user->modes,'o'))) + if (*u->oper || *user->oper) { // message allowed if: // (1) the sender is opered |