summaryrefslogtreecommitdiff
path: root/src/commands/cmd_notice.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-11 20:41:53 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-11 20:41:53 +0000
commitde594096be57d93e252dccea445ebe08834817fd (patch)
tree1f94ba251ffd7d17b297ae5064a3dfd8366f4670 /src/commands/cmd_notice.cpp
parentc5ce2a90791084af41462c3a261d29779faff3ef (diff)
Fix nick@server.target PRIVMSG and NOTICE, noticed by GeniusDex.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11086 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands/cmd_notice.cpp')
-rw-r--r--src/commands/cmd_notice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_notice.cpp b/src/commands/cmd_notice.cpp
index d38721a7f..d22bd2fce 100644
--- a/src/commands/cmd_notice.cpp
+++ b/src/commands/cmd_notice.cpp
@@ -134,7 +134,7 @@ CmdResult CommandNotice::Handle (const std::vector<std::string>& parameters, Use
{
std::string nickonly;
- nickonly.assign(destnick, 0, targetserver - destnick + 1);
+ nickonly.assign(destnick, 0, targetserver - destnick);
dest = ServerInstance->FindNickOnly(nickonly);
if (dest && strcasecmp(dest->server, targetserver + 1))
{