summaryrefslogtreecommitdiff
path: root/src/modules/m_watch.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-04-04 18:30:02 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-04-04 18:30:02 +0200
commit23183603b7ea3b2a50ce082d573bef07ab794686 (patch)
treee6076a2aeeac67c6dca294f83b30f9d326d24d70 /src/modules/m_watch.cpp
parent957676efd8e1330f1e1314046376f3d9dd1eab18 (diff)
Add REG_ALL checks to treat unregistered users as nonexistent in more cases
Diffstat (limited to 'src/modules/m_watch.cpp')
-rw-r--r--src/modules/m_watch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp
index fa7e212bb..0e532d65b 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -238,7 +238,7 @@ class CommandWatch : public Command
}
User* target = ServerInstance->FindNick(nick);
- if (target)
+ if ((target) && (target->registered == REG_ALL))
{
(*wl)[nick] = std::string(target->ident).append(" ").append(target->dhost).append(" ").append(ConvToStr(target->age));
user->WriteNumeric(604, "%s %s %s :is online",user->nick.c_str(), nick, (*wl)[nick].c_str());