From: brain Date: Tue, 26 Sep 2006 11:17:30 +0000 (+0000) Subject: Fix handling of multiple @%+ core permissions modes on join when more than one are... X-Git-Tag: v2.0.23~7025 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=0bf02e8a09a25b830dc351741093896955a7cae5;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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);