summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-07 23:48:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-07 23:48:26 +0000
commit9b169c24b1c04123bca3a04d08f8519362b87df4 (patch)
tree25e3b4eb9a646da847378b65833f5d33c6a41f17
parentefac11ae7a0458e195a8f5b61229ed3214b64f86 (diff)
Fix for bug #510
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9415 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/channels.cpp3
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);