diff options
| author | 2016-03-29 16:22:07 +0200 | |
|---|---|---|
| committer | 2016-03-29 16:22:07 +0200 | |
| commit | 7d37139ba6816cd8bf5161f8f0ae7a508ddd4619 (patch) | |
| tree | b0e6a34532cce56dbd8177f0e8753eaa632f15d8 /src/users.cpp | |
| parent | Merge branch 'master+stroute' (diff) | |
| download | inspircd++-7d37139ba6816cd8bf5161f8f0ae7a508ddd4619.tar.gz inspircd++-7d37139ba6816cd8bf5161f8f0ae7a508ddd4619.tar.bz2 inspircd++-7d37139ba6816cd8bf5161f8f0ae7a508ddd4619.zip | |
Handle numerics with a source other than the local server in User::WriteNumeric()
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 12fb902fb..e1bda1ad3 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -811,7 +811,8 @@ void User::WriteNumeric(const Numeric::Numeric& numeric) if (MOD_RESULT == MOD_RES_DENY) return; - this->Write(BuildNumeric(ServerInstance->Config->ServerName, this, numeric.GetNumeric(), numeric.GetParams())); + const std::string& servername = (numeric.GetServer() ? numeric.GetServer()->GetName() : ServerInstance->Config->ServerName); + this->Write(BuildNumeric(servername, this, numeric.GetNumeric(), numeric.GetParams())); } void User::WriteFrom(User *user, const std::string &text) |
