From 0bf02e8a09a25b830dc351741093896955a7cae5 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 26 Sep 2006 11:17:30 +0000 Subject: [PATCH] Fix handling of multiple @%+ core permissions modes on join when more than one are given git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5334 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/channels.cpp b/src/channels.cpp index 3e4f995ae..73c5746a7 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -400,13 +400,13 @@ chanrec* chanrec::ForceChan(InspIRCd* Instance, chanrec* Ptr,ucrec *a,userrec* u switch (status) { case '@': - a->uc_modes = UCMODE_OP; + a->uc_modes |= UCMODE_OP; break; case '%': - a->uc_modes = UCMODE_HOP; + a->uc_modes |= UCMODE_HOP; break; case '+': - a->uc_modes = UCMODE_VOICE; + a->uc_modes |= UCMODE_VOICE; break; } ModeHandler* mh = Instance->Modes->FindPrefix(status); -- 2.39.5