aboutsummaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index ce20a689d..532a1ad1f 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -172,7 +172,7 @@ void Channel::SetDefaultModes()
*/
Channel* Channel::JoinUser(LocalUser* user, std::string cname, bool override, const std::string& key)
{
- if (user->registered != REG_ALL)
+ if (!user->IsFullyConnected())
{
ServerInstance->Logs.Debug("CHANNELS", "Attempted to join unregistered user " + user->uuid + " to channel " + cname);
return nullptr;