summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-08-25 22:57:26 -0400
committerAdam <Adam@anope.org>2013-08-25 22:57:26 -0400
commit678f54903d3c18d6478f6be9e29a45eec62ef421 (patch)
treec6f6db8f0613a7c04f84fbbc3f54cec90a5971c5 /src/channels.cpp
parent714a4a3004062b3998d5ddd8518768ac87d9a7dd (diff)
Fix not resetting channel status modes on our clients when a channel ts lowers
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index e6bd816df..8e3a0be0a 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -76,9 +76,10 @@ void Channel::Reset()
ChannelStatus f = uc->status;
uc->status.Clear();
- if (BotInfo::Find(uc->user->nick))
+ /* reset modes for my clients */
+ if (uc->user->server == Me)
for (size_t i = 0; i < f.Modes().length(); ++i)
- this->SetMode(NULL, ModeManager::FindChannelModeByName(f.Modes()[i]), uc->user->GetUID(), false);
+ this->SetMode(NULL, ModeManager::FindChannelModeByChar(f.Modes()[i]), uc->user->GetUID(), false);
}
for (ChanUserList::const_iterator it = this->users.begin(), it_end = this->users.end(); it != it_end; ++it)