diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-05-07 20:58:21 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-05-07 20:58:21 +0000 |
commit | 720d0eb2fa04166563bf0bf050020bfa11454a32 (patch) | |
tree | 9155294e028ada22757e3a125fc9416fc33915a7 /src | |
parent | 80d95e25ccef7e69d3f99794fd359d009aebfec1 (diff) |
Let ulines do NOTICE/PRIVMSG $* without oper again, so that OS GLOBAL on services packages is fixed :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3940 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_notice.cpp | 2 | ||||
-rw-r--r-- | src/cmd_privmsg.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp index 228284a4a..5c745f74a 100644 --- a/src/cmd_notice.cpp +++ b/src/cmd_notice.cpp @@ -45,7 +45,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] == '$') && (*user->oper)) + if ((parameters[0][0] == '$') && ((*user->oper) || (is_uline(user->server)))) { // notice to server mask char* servermask = parameters[0]; diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp index 53a9e82dd..81e5ee016 100644 --- a/src/cmd_privmsg.cpp +++ b/src/cmd_privmsg.cpp @@ -42,7 +42,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] == '$') && (*user->oper)) + if ((parameters[0][0] == '$') && ((*user->oper) || (is_uline(user->server)))) { // notice to server mask char* servermask = parameters[0]; |