aboutsummaryrefslogtreecommitdiff
path: root/src/game/Channel.h
diff options
context:
space:
mode:
authorspp <none@none>2009-12-13 04:32:27 +0100
committerspp <none@none>2009-12-13 04:32:27 +0100
commit839e5624c4dfa26cffed76905864a9d761099cea (patch)
treec79cea75122bf4da2c563b57ec7b849086e91a14 /src/game/Channel.h
parent5268f8b5ef1dfeb014ec54b6807effc44eaad279 (diff)
Prevent SQL Injection in custom channel handling, by azazel. Closes #704
--HG-- branch : trunk
Diffstat (limited to 'src/game/Channel.h')
-rw-r--r--src/game/Channel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Channel.h b/src/game/Channel.h
index 69a1e2f66f6..1e883d3810b 100644
--- a/src/game/Channel.h
+++ b/src/game/Channel.h
@@ -208,6 +208,10 @@ class Channel
bool IsOn(uint64 who) const { return players.find(who) != players.end(); }
bool IsBanned(uint64 guid) const { return banned.find(guid) != banned.end(); }
+ bool _UpdateStringInDB(const std::string& colName, const std::string& colValue) const;
+ bool _UpdateIntInDB(const std::string& colName, int colValue) const;
+ void _UpdateBanListInDB() const;
+
uint8 GetPlayerFlags(uint64 p) const
{
PlayerList::const_iterator p_itr = players.find(p);