/[svn]/ircd-hybrid-7.2/modules/m_pass.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/modules/m_pass.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 572 by lusky, Sun Oct 2 21:05:51 2005 UTC revision 573 by michael, Mon May 1 09:40:37 2006 UTC
# Line 33  Line 33 
33  #include "parse.h"  #include "parse.h"
34  #include "modules.h"  #include "modules.h"
35  #include "s_serv.h"  #include "s_serv.h"
36  #include "hash.h"  #include "s_user.h"
37    
38  static void mr_pass(struct Client *, struct Client *, int, char **);  static void mr_pass(struct Client *, struct Client *, int, char *[]);
39    
40  struct Message pass_msgtab = {  struct Message pass_msgtab = {
41    "PASS", 0, 0, 2, 0, MFLG_SLOW | MFLG_UNREG, 0,    "PASS", 0, 0, 2, 0, MFLG_SLOW | MFLG_UNREG, 0,
42    {mr_pass, m_registered, m_ignore, m_ignore, m_registered, mr_pass}    { mr_pass, m_registered, m_ignore, m_ignore, m_registered, mr_pass }
43  };  };
44    
45  #ifndef STATIC_MODULES  #ifndef STATIC_MODULES
# Line 101  mr_pass(struct Client *client_p, struct Line 101  mr_pass(struct Client *client_p, struct
101    /* only do this stuff if we are doing ts6 */    /* only do this stuff if we are doing ts6 */
102    if (parc > 4 && me.id[0])    if (parc > 4 && me.id[0])
103    {    {
104      if (atoi(parv[3]) >= 6)      if (atoi(parv[3]) >= 6 && valid_sid(parv[4]))
105      {      {
106        strlcpy(client_p->id, parv[4], sizeof(client_p->id));        strlcpy(client_p->id, parv[4], sizeof(client_p->id));
107        SetCapable(client_p, CAP_TS6);        SetCapable(client_p, CAP_TS6);
108      }      }
109    }    }
110  }  }
   

Legend:
Removed from v.572  
changed lines
  Added in v.573

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28