summaryrefslogtreecommitdiff
path: root/src/messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages.cpp')
-rw-r--r--src/messages.cpp4
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());
}