diff options
author | Adam <Adam@Anope.org> | 2010-05-26 02:53:08 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:04:08 -0400 |
commit | 1394c96173cec02d148dfece563bb186cf2f33b6 (patch) | |
tree | 19afb8a2fde62477701c1d21510bc3c6fe4fd7ae /src/messages.cpp | |
parent | f0a44ba89471e006ab10e398e9635adbc73eb674 (diff) |
Removed a lot of unnecessary .c_str() calls in the find* functions
Diffstat (limited to 'src/messages.cpp')
-rw-r--r-- | src/messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messages.cpp b/src/messages.cpp index 56351ea8f..3af7d9d40 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -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()); } |