summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-19 21:42:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-19 21:42:08 +0000
commit18a67e4a2a6131b9694b9bc960ba50c55a50a43e (patch)
tree2cfb54ddf2bcff064900ac84431807b0d05820e3 /src
parentcf5ee19bca635a8c8ec3ef962a94bbafc06776cd (diff)
Don't permit non-opers to /NOTICE $* and /PRIVMSG $* :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3740 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/cmd_notice.cpp2
-rw-r--r--src/cmd_privmsg.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp
index 1adb43923..589bf38c7 100644
--- a/src/cmd_notice.cpp
+++ b/src/cmd_notice.cpp
@@ -70,7 +70,7 @@ void cmd_notice::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];
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];