ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_svsmode.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_svsmode.c (file contents):
Revision 3186 by michael, Thu Mar 20 18:09:34 2014 UTC vs.
Revision 3300 by michael, Sat Apr 12 18:26:22 2014 UTC

# Line 38 | Line 38
38   #include "conf.h"
39  
40  
41 < /*! \brief SVSMODE command handler (called by services)
41 > /*! \brief SVSMODE command handler
42   *
43   * \param source_p Pointer to allocated Client struct from which the message
44   *                 originally comes from.  This can be a local or remote client.
# Line 58 | Line 58 | ms_svsmode(struct Client *source_p, int
58    struct Client *target_p = NULL;
59    int what = MODE_ADD;
60    unsigned int flag = 0, setmodes = 0;
61 <  const char *m = NULL, *modes = NULL, *extarg = NULL;
61 >  const char *modes = NULL, *extarg = NULL;
62    time_t ts = 0;
63  
64    if (!HasFlag(source_p, FLAGS_SERVICE))
# Line 84 | Line 84 | ms_svsmode(struct Client *source_p, int
84  
85    setmodes = target_p->umodes;
86  
87 <  for (m = modes; *m; ++m)
87 >  for (const char *m = modes; *m; ++m)
88    {
89      switch (*m)
90      {
# Line 169 | Line 169 | ms_svsmode(struct Client *source_p, int
169  
170    if (MyConnect(target_p) && (setmodes != target_p->umodes))
171    {
172 <    char modebuf[IRCD_BUFSIZE];
172 >    char modebuf[IRCD_BUFSIZE] = "";
173  
174      send_umode(target_p, target_p, setmodes, 0xffffffff, modebuf);
175    }

Diff Legend

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