diff options
author | p0wer <none@none> | 2010-02-24 21:34:24 -0600 |
---|---|---|
committer | p0wer <none@none> | 2010-02-24 21:34:24 -0600 |
commit | 8c06fe676faa0e2a60f8848be0ae94d2cf0b2329 (patch) | |
tree | f66663420deb75f80a7b83c2f963403e2e6d1b6a | |
parent | ba51f553fc3a677aa4d8ae846f86f8a560d9982c (diff) |
Fix typo in previous commit. Remove more lines now that the PSendSysMessage isn't calling the uneccesary name.
--HG--
branch : trunk
-rw-r--r-- | src/game/Channel.cpp | 2 | ||||
-rw-r--r-- | src/game/Level3.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/game/Channel.cpp b/src/game/Channel.cpp index a8197f70e6d..c09a6fc30e8 100644 --- a/src/game/Channel.cpp +++ b/src/game/Channel.cpp @@ -372,8 +372,6 @@ void Channel::Password(uint64 p, const char *pass) if(!m_public && sec <= SEC_MODERATOR) { - plName = plr->GetName(); - normalizePlayerName(plName); chat.PSendSysMessage(LANG_CHANNEL_NOT_PUBLIC); return; } diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index e1e67ce99ad..e2bf6c3cfa3 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -7243,12 +7243,12 @@ bool ChatHandler::HandleChannelSetPublic(const char *args) if(val) { - CharacterDatabase.PExecute("UPDATE channels SET m_public = 1 WHERE n_name LIKE '%s'", channel); + CharacterDatabase.PExecute("UPDATE channels SET m_public = 1 WHERE m_name LIKE '%s'", channel); val = 1; } else { - CharacterDatabase.PExecute("UPDATE channels SET m_public = 0 WHERE n_name LIKE '%s'", channel); + CharacterDatabase.PExecute("UPDATE channels SET m_public = 0 WHERE m_name LIKE '%s'", channel); val = 0; } |