| 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 |
|
{ |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
const char *_version = "$Revision$"; |
| 59 |
– |
#endif |
| 58 |
|
|
| 59 |
|
/* |
| 60 |
|
* m_pass() - Added Sat, 4 March 1989 |
| 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 |
– |
|