diff options
| author | 2012-07-24 14:54:29 +0200 | |
|---|---|---|
| committer | 2012-10-12 03:57:39 +0200 | |
| commit | c8b41aa5d256d99eee67ec94492a94dc30e0ea35 (patch) | |
| tree | 251cb805f1fe25423ca245b4a9b6d5db67451fe8 /src/modules/m_sethost.cpp | |
| parent | Fix unregistered users getting global notices, also fix certain commands work... (diff) | |
Remove superfluous std::string()s
Diffstat (limited to 'src/modules/m_sethost.cpp')
| -rw-r--r-- | src/modules/m_sethost.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 8bab2c3b4..ae0cc7c56 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -43,7 +43,7 @@ class CommandSethost : public Command { if (!hostmap[(const unsigned char)*x]) { - user->WriteServ("NOTICE "+std::string(user->nick)+" :*** SETHOST: Invalid characters in hostname"); + user->WriteServ("NOTICE "+user->nick+" :*** SETHOST: Invalid characters in hostname"); return CMD_FAILURE; } } @@ -60,7 +60,7 @@ class CommandSethost : public Command if (user->ChangeDisplayedHost(parameters[0].c_str())) { - ServerInstance->SNO->WriteGlobalSno('a', std::string(user->nick)+" used SETHOST to change their displayed host to "+user->dhost); + ServerInstance->SNO->WriteGlobalSno('a', user->nick+" used SETHOST to change their displayed host to "+user->dhost); return CMD_SUCCESS; } |
