m_nick/m_sasl/m_user: restore check for mixing of client and server protocol
This commit is contained in:
parent
28caceba33
commit
3ea954da3a
3 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ mr_nick(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
struct Client *target_p;
|
||||
char nick[NICKLEN];
|
||||
|
||||
if (strlen(client_p->id) == 3)
|
||||
if (strlen(client_p->id) == 3 || (source_p->preClient && !EmptyString(source_p->preClient->id)))
|
||||
{
|
||||
exit_client(client_p, client_p, client_p, "Mixing client and server protocol");
|
||||
return 0;
|
||||
|
|
|
@ -116,7 +116,7 @@ m_authenticate(struct Client *client_p, struct Client *source_p,
|
|||
if(!IsCapable(source_p, CLICAP_SASL))
|
||||
return 0;
|
||||
|
||||
if (strlen(client_p->id) == 3)
|
||||
if (strlen(client_p->id) == 3 || (source_p->preClient && !EmptyString(source_p->preClient->id)))
|
||||
{
|
||||
exit_client(client_p, client_p, client_p, "Mixing client and server protocol");
|
||||
return 0;
|
||||
|
|
|
@ -63,7 +63,7 @@ mr_user(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
static char buf[BUFSIZE];
|
||||
char *p;
|
||||
|
||||
if (strlen(client_p->id) == 3)
|
||||
if (strlen(client_p->id) == 3 || (source_p->preClient && !EmptyString(source_p->preClient->id)))
|
||||
{
|
||||
exit_client(client_p, client_p, client_p, "Mixing client and server protocol");
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue