Author: Bleep <tomh@inxpress.net>
authorBleep <twhelvey1@home.com>
Sat, 18 Mar 2000 02:07:55 +0000 (02:07 +0000)
committerBleep <twhelvey1@home.com>
Sat, 18 Mar 2000 02:07:55 +0000 (02:07 +0000)
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

index 651cdd61053ba148b11f7ecbb62420c3d5b6d5fc..91044d00c43638fcabc49e512b9fc0934d75abfe 100644 (file)
@@ -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)