1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 01:56:38 +02:00

Removed a lot of unnecessary .c_str() calls in the find* functions

This commit is contained in:
Adam
2010-05-26 02:53:08 -05:00
committed by Adam
parent f0a44ba894
commit 1394c96173
26 changed files with 53 additions and 55 deletions
+2 -2
View File
@@ -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;