From 366a6768437ef753dc31f3ce73e8b2e20a66d243 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 2 Feb 2008 23:24:19 +0000 Subject: [PATCH] Small tidyup git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8797 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 11 ++++------- 1 file 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 '@': -- 2.39.2