1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 13:33:13 +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
@@ -218,7 +218,6 @@ int m_privmsg(const char *source, const std::string &receiver, const char *msg)
int m_stats(const char *source, int ac, const char **av)
{
User *u;
NickCore *nc;
if (ac < 1)
return MOD_CONT;
@@ -248,7 +247,8 @@ int m_stats(const char *source, int ac, const char **av)
{
std::string nick = it->first, type = it->second;
if ((nc = findcore(nick.c_str())))
NickCore *nc = findcore(nick);
if (nc)
ircdproto->SendNumeric(Config.ServerName, 243, source, "O * * %s %s 0", nick.c_str(), type.c_str());
}