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 3215 by michael, Tue Mar 25 19:23:15 2014 UTC vs.
Revision 3347 by michael, Sun Apr 20 14:03:06 2014 UTC

# Line 28 | Line 28
28   #include "stdinc.h"
29   #include "client.h"
30   #include "ircd.h"
31 < #include "s_serv.h"
31 > #include "server.h"
32   #include "send.h"
33   #include "channel_mode.h"
34   #include "parse.h"
35   #include "modules.h"
36   #include "irc_string.h"
37 < #include "s_user.h"
37 > #include "user.h"
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      {

Diff Legend

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