summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 86c261029..decc3c77f 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -78,8 +78,12 @@ void Channel::Reset()
/* reset modes for my clients */
if (uc->user->server == Me)
+ {
for (size_t i = 0; i < f.Modes().length(); ++i)
this->SetMode(NULL, ModeManager::FindChannelModeByChar(f.Modes()[i]), uc->user->GetUID(), false);
+ /* Modes might not exist yet, so be sure the status is really reset */
+ uc->status = f;
+ }
}
for (ChanUserList::const_iterator it = this->users.begin(), it_end = this->users.end(); it != it_end; ++it)