diff options
| author | 2008-04-07 23:48:26 +0000 | |
|---|---|---|
| committer | 2008-04-07 23:48:26 +0000 | |
| commit | 9b169c24b1c04123bca3a04d08f8519362b87df4 (patch) | |
| tree | 25e3b4eb9a646da847378b65833f5d33c6a41f17 /src/channels.cpp | |
| parent | Hosts vector not cleared on rehash, made rehashing for changes impossible (diff) | |
| download | inspircd++-9b169c24b1c04123bca3a04d08f8519362b87df4.tar.gz inspircd++-9b169c24b1c04123bca3a04d08f8519362b87df4.tar.bz2 inspircd++-9b169c24b1c04123bca3a04d08f8519362b87df4.zip | |
Fix for bug #510
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9415 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index b9dad3a7c..5f0f545ae 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -184,6 +184,7 @@ CUList* Channel::GetVoicedUsers() void Channel::SetDefaultModes() { + ServerInstance->Logs->Log("CHANNELS", DEBUG, "SetDefaultModes %s", ServerInstance->Config->DefaultModes); irc::spacesepstream list(ServerInstance->Config->DefaultModes); std::string modeseq; std::string parameter; @@ -357,7 +358,7 @@ Channel* Channel::JoinUser(InspIRCd* Instance, User *user, const char* cn, bool } /* As spotted by jilles, dont bother to set this on remote users */ - if (IS_LOCAL(user) && Ptr->GetUserCounter() == 1) + if (IS_LOCAL(user) && Ptr->GetUserCounter() == 0) Ptr->SetDefaultModes(); return Channel::ForceChan(Instance, Ptr, user, privs, bursting); |
