diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-25 12:55:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-25 12:55:31 +0300 |
commit | 5f97d3fd31bb5a17037610342ea09c21da9c47d3 (patch) | |
tree | ad32a4c8835c6b9273414e3b412c44e41270e708 /src/auctionmanager.cpp | |
parent | da457cf152d5aff51d859c18d3668682348dbf7a (diff) | |
download | mv-5f97d3fd31bb5a17037610342ea09c21da9c47d3.tar.gz mv-5f97d3fd31bb5a17037610342ea09c21da9c47d3.tar.bz2 mv-5f97d3fd31bb5a17037610342ea09c21da9c47d3.tar.xz mv-5f97d3fd31bb5a17037610342ea09c21da9c47d3.zip |
change vars and methods to const.
Diffstat (limited to 'src/auctionmanager.cpp')
-rw-r--r-- | src/auctionmanager.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/auctionmanager.cpp b/src/auctionmanager.cpp index 03068c607..9b35ff877 100644 --- a/src/auctionmanager.cpp +++ b/src/auctionmanager.cpp @@ -61,19 +61,20 @@ void AuctionManager::init() auctionManager = new AuctionManager(); } -void AuctionManager::send(std::string msg) +void AuctionManager::send(const std::string &msg) { if (Net::getChatHandler()) Net::getChatHandler()->privateMessage("AuctionBot", msg); } -bool AuctionManager::processAuctionMessage(std::string msg) +/* +bool AuctionManager::processAuctionMessage(const std::string &msg) { if (msg.size() > 4 && msg[0] == '#' && msg[1] == '#') msg = msg.substr(3); - return false; } +*/ void AuctionManager::clear() { @@ -83,7 +84,7 @@ void AuctionManager::reload() { } -void AuctionManager::sendMail(std::string mail) +void AuctionManager::sendMail(const std::string &mail) { if (Net::getChatHandler()) Net::getChatHandler()->privateMessage("AuctionBot", "!mail " + mail); |