]> jfr.im git - solanum.git/commitdiff
sasl: remove checks for impossible conditions
authorWilliam Pitcock <redacted>
Thu, 31 Mar 2011 05:18:32 +0000 (00:18 -0500)
committerWilliam Pitcock <redacted>
Thu, 31 Mar 2011 05:18:32 +0000 (00:18 -0500)
modules/m_sasl.c

index 41bf823d97333a1c121b223254e8e935d736a412..b17e6bdc0f778404d5e22ab21c16a87bac2f4bf0 100644 (file)
@@ -77,12 +77,6 @@ mr_authenticate(struct Client *client_p, struct Client *source_p,
        if(!IsCapable(source_p, CLICAP_SASL))
                return 0;
 
-       if (strlen(client_p->id) == 3)
-       {
-               exit_client(client_p, client_p, client_p, "Mixing client and server protocol");
-               return 0;
-       }
-
        if(source_p->preClient->sasl_complete)
        {
                sendto_one(source_p, form_str(ERR_SASLALREADY), me.name, EmptyString(source_p->name) ? "*" : source_p->name);
@@ -111,6 +105,7 @@ mr_authenticate(struct Client *client_p, struct Client *source_p,
        else
                sendto_one(agent_p, ":%s ENCAP %s SASL %s %s C %s", me.id, agent_p->servptr->name,
                                source_p->id, agent_p->id, parv[1]);
+
        source_p->preClient->sasl_out++;
 
        return 0;