From de594096be57d93e252dccea445ebe08834817fd Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 11 Feb 2009 20:41:53 +0000 Subject: 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 --- src/commands/cmd_notice.cpp | 2 +- src/commands/cmd_privmsg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands') 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& 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)) { diff --git a/src/commands/cmd_privmsg.cpp b/src/commands/cmd_privmsg.cpp index 13c81a5a1..64adafbe8 100644 --- a/src/commands/cmd_privmsg.cpp +++ b/src/commands/cmd_privmsg.cpp @@ -146,7 +146,7 @@ CmdResult CommandPrivmsg::Handle (const std::vector& parameters, Us { 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)) { -- cgit v1.2.3