diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-04 18:30:02 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-04 18:30:02 +0200 |
commit | 23183603b7ea3b2a50ce082d573bef07ab794686 (patch) | |
tree | e6076a2aeeac67c6dca294f83b30f9d326d24d70 /src/modules/m_spanningtree | |
parent | 957676efd8e1330f1e1314046376f3d9dd1eab18 (diff) |
Add REG_ALL checks to treat unregistered users as nonexistent in more cases
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/idle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/idle.cpp b/src/modules/m_spanningtree/idle.cpp index 8bc0cd2bb..0ea06a3cc 100644 --- a/src/modules/m_spanningtree/idle.cpp +++ b/src/modules/m_spanningtree/idle.cpp @@ -59,7 +59,7 @@ bool TreeSocket::Whois(const std::string &prefix, parameterlist ¶ms) { std::string who_did_the_whois = params[0]; User* who_to_send_to = ServerInstance->FindNick(who_did_the_whois); - if ((who_to_send_to) && (IS_LOCAL(who_to_send_to))) + if ((who_to_send_to) && (IS_LOCAL(who_to_send_to)) && (who_to_send_to->registered == REG_ALL)) { // an incoming reply to a whois we sent out std::string nick_whoised = prefix; |