diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-03 22:48:05 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-03 22:54:04 +0200 |
commit | 9d7352022369a04d957028515d2468297422f5e7 (patch) | |
tree | c74dd3f18610f004656944e793a93ed08284a7ba /src/guild.cpp | |
parent | c18aa95dc6b44337c4ab63d9d892af6eb1f5a679 (diff) | |
download | mana-9d7352022369a04d957028515d2468297422f5e7.tar.gz mana-9d7352022369a04d957028515d2468297422f5e7.tar.bz2 mana-9d7352022369a04d957028515d2468297422f5e7.tar.xz mana-9d7352022369a04d957028515d2468297422f5e7.zip |
Added support for the "too fast" login error
So that next time somebody encounters it, it doesn't turn up as "unknown
error".
Diffstat (limited to 'src/guild.cpp')
-rw-r--r-- | src/guild.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/guild.cpp b/src/guild.cpp index 62c6e3f4..be4a5204 100644 --- a/src/guild.cpp +++ b/src/guild.cpp @@ -52,13 +52,13 @@ void Guild::removeMember(const std::string &name) } } -bool Guild::isMember(const std::string &name) +bool Guild::isMember(const std::string &name) const { - std::vector<std::string>::iterator itr = mMembers.begin(), - itr_end = mMembers.end(); - while(itr != itr_end) + std::vector<std::string>::const_iterator itr = mMembers.begin(), + itr_end = mMembers.end(); + while (itr != itr_end) { - if((*itr) == name) + if ((*itr) == name) { return true; } |