summaryrefslogtreecommitdiff
path: root/src/modules/m_sasl.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-04-27 16:36:40 +0100
committerSadie Powell <sadie@witchery.services>2021-04-27 16:41:14 +0100
commitb4a174ee9c32d62ea6bf010e837e8c5b1c3d36a3 (patch)
tree81327174fcc9df91ad7494e7b34829770caac727 /src/modules/m_sasl.cpp
parent8a5a1c799e5bec875b081f70639156429d7847e3 (diff)
Fix a bunch of weird indentation and spacing issues.
Diffstat (limited to 'src/modules/m_sasl.cpp')
-rw-r--r--src/modules/m_sasl.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp
index e202bae45..57e605d61 100644
--- a/src/modules/m_sasl.cpp
+++ b/src/modules/m_sasl.cpp
@@ -235,11 +235,11 @@ class SaslAuthenticator
{
switch (this->state)
{
- case SASL_INIT:
+ case SASL_INIT:
this->agent = msg[0];
this->state = SASL_COMM;
/* fall through */
- case SASL_COMM:
+ case SASL_COMM:
if (msg[0] != this->agent)
return this->state;
@@ -267,9 +267,9 @@ class SaslAuthenticator
ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "Services sent an unknown SASL message \"%s\" \"%s\"", msg[2].c_str(), msg[3].c_str());
break;
- case SASL_DONE:
+ case SASL_DONE:
break;
- default:
+ default:
ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "WTF: SaslState is not a known state (%d)", this->state);
break;
}
@@ -301,16 +301,16 @@ class SaslAuthenticator
switch (this->result)
{
- case SASL_OK:
+ case SASL_OK:
this->user->WriteNumeric(RPL_SASLSUCCESS, "SASL authentication successful");
break;
- case SASL_ABORT:
+ case SASL_ABORT:
this->user->WriteNumeric(ERR_SASLABORTED, "SASL authentication aborted");
break;
- case SASL_FAIL:
+ case SASL_FAIL:
this->user->WriteNumeric(ERR_SASLFAIL, "SASL authentication failed");
break;
- default:
+ default:
break;
}
@@ -321,8 +321,8 @@ class SaslAuthenticator
class CommandAuthenticate : public SplitCommand
{
private:
- // The maximum length of an AUTHENTICATE request.
- static const size_t MAX_AUTHENTICATE_SIZE = 400;
+ // The maximum length of an AUTHENTICATE request.
+ static const size_t MAX_AUTHENTICATE_SIZE = 400;
public:
SimpleExtItem<SaslAuthenticator>& authExt;