ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/channel_mode.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/channel_mode.c (file contents):
Revision 9832 by michael, Sat Sep 5 10:09:36 2020 UTC vs.
Revision 9833 by michael, Fri Dec 25 10:09:43 2020 UTC

# Line 121 | Line 121 | add_id(struct Client *client, struct Cha
121                                                            ConfigChannel.max_bans))
122      {
123        sendto_one_numeric(client, &me, ERR_BANLISTFULL, channel->name, banid);
124 <      return false;
124 >      return NULL;
125      }
126  
127      collapse(mask);
# Line 243 | Line 243 | del_id(struct Client *client, struct Cha
243   {
244    static char mask[MODEBUFLEN];
245    dlink_node *node;
246 +
247    assert(banid);
248  
249    /* TBD: n!u@h formatting fo local clients */
# Line 379 | Line 380 | static void
380   chm_simple(struct Client *client, struct Channel *channel, int parc, int *parn, char **parv,
381             int *errors, int alev, int dir, const char c, const struct chan_mode *mode)
382   {
383 <  if (mode->only_opers)
383 >  if (mode->only_opers == true)
384    {
385      if (MyClient(client) && !HasUMode(client, UMODE_OPER))
386      {
# Line 391 | Line 392 | chm_simple(struct Client *client, struct
392      }
393    }
394  
395 <  if (mode->only_servers)
395 >  if (mode->only_servers == true)
396    {
397      if (!IsServer(client) && !HasFlag(client, FLAGS_SERVICE))
398      {
# Line 755 | Line 756 | get_channel_access(const struct Client *
756   static void
757   send_mode_changes_server(struct Client *client, struct Channel *channel)
758   {
759 <  char modebuf[IRCD_BUFSIZE] = "";
760 <  char parabuf[IRCD_BUFSIZE] = "";
759 >  char modebuf[IRCD_BUFSIZE];
760 >  char parabuf[IRCD_BUFSIZE];
761    char *parptr = parabuf;
762    unsigned int mbl = 0, pbl = 0, arglen = 0, modecount = 0, paracount = 0;
763    unsigned int dir = MODE_QUERY;
# Line 843 | Line 844 | send_mode_changes_client(struct Client *
844  
845    for (unsigned int pass = 2; pass--; flags = CHFL_CHANOP | CHFL_HALFOP)
846    {
847 <    char modebuf[IRCD_BUFSIZE] = "";
848 <    char parabuf[IRCD_BUFSIZE] = "";
847 >    char modebuf[IRCD_BUFSIZE];
848 >    char parabuf[IRCD_BUFSIZE];
849      char *parptr = parabuf;
850      unsigned int mbl = 0, pbl = 0, arglen = 0, modecount = 0, paracount = 0;
851      unsigned int dir = MODE_QUERY;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)