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

Comparing:
ircd-hybrid/modules/m_pass.c (file contents), Revision 33 by knight, Sun Oct 2 20:50:00 2005 UTC vs.
ircd-hybrid-8/modules/m_pass.c (file contents), Revision 1156 by michael, Tue Aug 9 20:29:20 2011 UTC

# Line 33 | Line 33
33   #include "parse.h"
34   #include "modules.h"
35   #include "s_serv.h"
36 < #include "hash.h"
36 > #include "s_user.h"
37  
38 < static void mr_pass(struct Client *, struct Client *, int, char **);
38 > static void mr_pass(struct Client *, struct Client *, int, char *[]);
39  
40   struct Message pass_msgtab = {
41    "PASS", 0, 0, 2, 0, MFLG_SLOW | MFLG_UNREG, 0,
42 <  {mr_pass, m_registered, m_ignore, m_ignore, m_registered, mr_pass}
42 >  { mr_pass, m_registered, m_ignore, m_ignore, m_registered, mr_pass }
43   };
44  
45 – #ifndef STATIC_MODULES
45   void
46   _modinit(void)
47   {
# Line 56 | Line 55 | _moddeinit(void)
55   }
56  
57   const char *_version = "$Revision$";
59 – #endif
58  
59   /*
60   * m_pass() - Added Sat, 4 March 1989
# Line 99 | Line 97 | mr_pass(struct Client *client_p, struct
97    }
98  
99    /* only do this stuff if we are doing ts6 */
100 <  if (parc > 4 && me.id[0])
100 >  if (parc > 4)
101    {
102 <    if (atoi(parv[3]) >= 6)
102 >    if (atoi(parv[3]) >= 6 && valid_sid(parv[4]))
103      {
104        strlcpy(client_p->id, parv[4], sizeof(client_p->id));
105        SetCapable(client_p, CAP_TS6);
106      }
107    }
108   }
111 –

Diff Legend

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