summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@Anope.org>2010-05-26 02:53:08 -0500
committerAdam <Adam@anope.org>2010-06-18 21:04:08 -0400
commit1394c96173cec02d148dfece563bb186cf2f33b6 (patch)
tree19afb8a2fde62477701c1d21510bc3c6fe4fd7ae /src/users.cpp
parentf0a44ba89471e006ab10e398e9635adbc73eb674 (diff)
Removed a lot of unnecessary .c_str() calls in the find* functions
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 946f70f6a..3e367ef47 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -358,7 +358,7 @@ void User::Collide(NickAlias *na)
snprintf(randbuf, sizeof(randbuf), "%d", getrandom16());
guestnick = std::string(Config.NSGuestNickPrefix) + std::string(randbuf);
}
- while (finduser(guestnick.c_str()));
+ while (finduser(guestnick));
notice_lang(Config.s_NickServ, this, FORCENICKCHANGE_CHANGING, guestnick.c_str());
ircdproto->SendForceNickChange(this, guestnick.c_str(), time(NULL));
@@ -737,7 +737,7 @@ User *finduser(const ci::string &nick)
if (isdigit(nick[0]) && ircd->ts6)
return find_byuid(nick);
- user_map::const_iterator it = UserListByNick.find(nick.c_str());
+ user_map::const_iterator it = UserListByNick.find(nick);
if (it != UserListByNick.end())
return it->second;