diff options
| author | 2014-04-04 18:30:02 +0200 | |
|---|---|---|
| committer | 2014-04-04 18:30:02 +0200 | |
| commit | 23183603b7ea3b2a50ce082d573bef07ab794686 (patch) | |
| tree | e6076a2aeeac67c6dca294f83b30f9d326d24d70 /src/modules/m_watch.cpp | |
| parent | Fix typos and update text in the configure script (diff) | |
| download | inspircd++-23183603b7ea3b2a50ce082d573bef07ab794686.tar.gz inspircd++-23183603b7ea3b2a50ce082d573bef07ab794686.tar.bz2 inspircd++-23183603b7ea3b2a50ce082d573bef07ab794686.zip | |
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.cpp | 2 |
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()); |
