diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-19 00:20:48 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-19 18:32:45 +0100 |
commit | d31e6e1f3e9a52e23134525b26912f0ebd4f27c0 (patch) | |
tree | 337cb4c8273961c7b0f52b412a9e6bb1cada9d3e /src | |
parent | b5159b7a927dc5b7162bedfc5b2b140b6055fef1 (diff) |
m_customtitle Minor cleanup
- Remove TRANSLATE() as it makes no sense here (user parameter is not a nick)
- Compare strings with == instead of strcmp
- PassCompare uses strings, pass them as-is without c_str()
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_customtitle.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index a9704e7de..efe4b3247 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -33,7 +33,6 @@ class CommandTitle : public Command ctitle("ctitle", Creator) { syntax = "<user> <password>"; - TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } bool OneOfMatches(const char* host, const char* ip, const char* hostlist) @@ -68,7 +67,7 @@ class CommandTitle : public Command std::string title = i->second->getString("title"); std::string vhost = i->second->getString("vhost"); - if (!strcmp(Name.c_str(),parameters[0].c_str()) && !ServerInstance->PassCompare(user, pass.c_str(), parameters[1].c_str(), hash.c_str()) && OneOfMatches(TheHost,TheIP,host.c_str()) && !title.empty()) + if (Name == parameters[0] && !ServerInstance->PassCompare(user, pass, parameters[1], hash) && OneOfMatches(TheHost,TheIP,host.c_str()) && !title.empty()) { ctitle.set(user, title); |