summaryrefslogtreecommitdiff
path: root/src/cmd_privmsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_privmsg.cpp')
-rw-r--r--src/cmd_privmsg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp
index f5adf14d0..9ab0532c5 100644
--- a/src/cmd_privmsg.cpp
+++ b/src/cmd_privmsg.cpp
@@ -70,7 +70,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user)
if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-2,0))
return;
- if (parameters[0][0] == '$')
+ if ((parameters[0][0] == '$') && (*user->oper))
{
// notice to server mask
char* servermask = parameters[0];