summaryrefslogtreecommitdiff
path: root/src/cmd_notice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_notice.cpp')
-rw-r--r--src/cmd_notice.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp
index d97743a43..f66341846 100644
--- a/src/cmd_notice.cpp
+++ b/src/cmd_notice.cpp
@@ -117,7 +117,11 @@ CmdResult cmd_notice::Handle (const char** parameters, int pcnt, userrec *user)
return CMD_SUCCESS;
}
- dest = ServerInstance->FindNick(parameters[0]);
+ if (IS_LOCAL(user))
+ dest = ServerInstance->FindNickOnly(parameters[0]);
+ else
+ dest = ServerInstance->FindNick(parameters[0]);
+
if (dest)
{
if (!*parameters[1])