summaryrefslogtreecommitdiff
path: root/src/coremods/core_wallops.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-04-02 12:44:12 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-04-02 12:44:12 +0200
commita6e68c0d346395630dee9dc69211a284360b6c62 (patch)
tree1d6c28eb611182fa38ac6061c886695bd1d5f6cd /src/coremods/core_wallops.cpp
parent02e935ec7502b70fe85c9676bf8ddf0c15d9337e (diff)
Remove User::WriteTo() functions; use User::WriteFrom() instead
The removed functions were rarely used and all they did was to call User::WriteFrom() with swapped arguments. On call sites, WriteTo() hardly offers any readability improvement over WriteFrom().
Diffstat (limited to 'src/coremods/core_wallops.cpp')
-rw-r--r--src/coremods/core_wallops.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_wallops.cpp b/src/coremods/core_wallops.cpp
index 276da51dc..5dfb79b67 100644
--- a/src/coremods/core_wallops.cpp
+++ b/src/coremods/core_wallops.cpp
@@ -59,7 +59,7 @@ CmdResult CommandWallops::Handle (const std::vector<std::string>& parameters, Us
{
User* t = *i;
if (t->IsModeSet(wallopsmode))
- user->WriteTo(t,wallop);
+ t->WriteFrom(user, wallop);
}
return CMD_SUCCESS;