summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-02 23:24:19 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-02 23:24:19 +0000
commit366a6768437ef753dc31f3ce73e8b2e20a66d243 (patch)
treea8966b4509c4803af5c7bc85b2588fb776ca2e3e /src
parent27fbecdaa75d262e92703a578c508c0aeccd06a4 (diff)
Small tidyup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8797 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 3a89f9e73..cab05caeb 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -379,18 +379,15 @@ Channel* Channel::ForceChan(InspIRCd* Instance, Channel* Ptr, User* user, const
ModeHandler* mh = Instance->Modes->FindPrefix(status);
if (mh)
{
+ /* Set, and make sure that the mode handler knows this mode was now set */
Ptr->SetPrefix(user, status, mh->GetPrefixRank(), true);
- /* Make sure that the mode handler knows this mode was now set */
mh->OnModeChange(Instance->FakeClient, Instance->FakeClient, Ptr, nick, true);
switch (mh->GetPrefix())
{
- /* These logic ops are SAFE IN THIS CASE
- * because if the entry doesnt exist,
- * addressing operator[] creates it.
- * If they do exist, it points to it.
- * At all other times where we dont want
- * to create an item if it doesnt exist, we
+ /* These logic ops are SAFE IN THIS CASE because if the entry doesnt exist,
+ * addressing operator[] creates it. If they do exist, it points to it.
+ * At all other times where we dont want to create an item if it doesnt exist, we
* must stick to ::find().
*/
case '@':