[READ-ONLY] Mirror of https://github.com/VibeDevelopers/Comet.
0

Configure Feed

Select the types of activity you want to include in your feed.

m_nick/m_sasl/m_user: restore check for mixing of client and server protocol

Simon Arlott (Aug 15, 2018, 10:48 PM +0100) d5d52a99 d4b2529a

+3 -3
+1 -1
modules/core/m_nick.c
··· 122 122 struct Client *target_p; 123 123 char nick[NICKLEN]; 124 124 125 - if (strlen(client_p->id) == 3) 125 + if (strlen(client_p->id) == 3 || (source_p->preClient && !EmptyString(source_p->preClient->id))) 126 126 { 127 127 exit_client(client_p, client_p, client_p, "Mixing client and server protocol"); 128 128 return;
+1 -1
modules/m_sasl.c
··· 146 146 return; 147 147 } 148 148 149 - if(strlen(client_p->id) == 3) 149 + if (strlen(client_p->id) == 3 || (source_p->preClient && !EmptyString(source_p->preClient->id))) 150 150 { 151 151 exit_client(client_p, client_p, client_p, "Mixing client and server protocol"); 152 152 return;
+1 -1
modules/m_user.c
··· 63 63 static char buf[BUFSIZE]; 64 64 char *p; 65 65 66 - if (strlen(client_p->id) == 3) 66 + if (strlen(client_p->id) == 3 || (source_p->preClient && !EmptyString(source_p->preClient->id))) 67 67 { 68 68 exit_client(client_p, client_p, client_p, "Mixing client and server protocol"); 69 69 return;