From 8c06fe676faa0e2a60f8848be0ae94d2cf0b2329 Mon Sep 17 00:00:00 2001 From: p0wer Date: Wed, 24 Feb 2010 21:34:24 -0600 Subject: [PATCH] Fix typo in previous commit. Remove more lines now that the PSendSysMessage isn't calling the uneccesary name. --HG-- branch : trunk --- src/game/Channel.cpp | 2 -- 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 a8197f70e6..c09a6fc30e 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 e1e67ce99a..e2bf6c3cfa 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; }