From eeff5dd006459c6c56f025f13852fdafb2961339 Mon Sep 17 00:00:00 2001 From: Bleep Date: Sat, 18 Mar 2000 02:07:55 +0000 Subject: [PATCH] Author: Bleep Log message: Eventually I'll get this bit in there the first time. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@24 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ircd/channel.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ircd/channel.c b/ircd/channel.c index 651cdd6..91044d0 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -728,11 +728,13 @@ void send_channel_modes(aClient *cptr, aChannel *chptr) if (new_mode) /* Do we have a nick with a new mode ? */ { new_mode = 0; - sendbuf[sblen++] = ':'; - if (lp1->flags & CHFL_CHANOP) - sendbuf[sblen++] = 'o'; - if (lp1->flags & CHFL_VOICE) - sendbuf[sblen++] = 'v'; + if (lp1->flags & (CHFL_CHANOP | CHFL_VOICE)) { + sendbuf[sblen++] = ':'; + if (lp1->flags & CHFL_CHANOP) + sendbuf[sblen++] = 'o'; + if (lp1->flags & CHFL_VOICE) + sendbuf[sblen++] = 'v'; + } } } if (full) -- 2.20.1