Browse Source

Added missing newline

Added some numerics
release/0.19
Jessica James 8 years ago
parent
commit
5d3b07082e
  1. 2
      Jupiter/IRC_Client.cpp
  2. 9
      Jupiter/IRC_Numerics.h

2
Jupiter/IRC_Client.cpp

@ -1181,7 +1181,7 @@ int Jupiter::IRC::Client::process_line(const Jupiter::ReadableString &line)
Jupiter::StringS auth_str = m_nickname + '\0' + m_sasl_account + '\0' + m_sasl_password;
char *enc = Jupiter::base64encode(auth_str.ptr(), auth_str.size());
m_socket->send("AUTHENTICATE "_jrs + enc);
m_socket->send("AUTHENTICATE "_jrs + enc + ENDL);
delete[] enc;
}
m_socket->send("CAP END" ENDL);

9
Jupiter/IRC_Numerics.h

@ -254,6 +254,10 @@ namespace Jupiter
constexpr NumericType XINFOSTART = 773; /** I have no idea what this does. */
constexpr NumericType XINFOEND = 774; /** I have no idea what this does. */
constexpr NumericType LOGGEDIN = 901; /** You have logged in */
constexpr NumericType LOGGEDOUT = 902; /** You have logged out */
constexpr NumericType SASLSUCCESS = 903; /** SASL authentication successful */
constexpr NumericType SASLMECHS = 908; /** Available SASL mechanisms */
constexpr NumericType CANNOTDOCOMMAND = 972; /** I have no idea what this does. */
constexpr NumericType CANNOTCHANGEUMODE = 973; /** I have no idea what this does. */
constexpr NumericType CANNOTCHANGECHANMODE = 974; /** I have no idea what this does. */
@ -372,6 +376,11 @@ namespace Jupiter
constexpr NumericType USINGSLINE = 552; /** I have no idea what this does. */
constexpr NumericType STARTTLS = 691; /** An error occured setting up SSL/TLS server-side */
constexpr NumericType SASLFAIL = 904; /** SASL authentication failed (invalid credentials) */
constexpr NumericType SASLTOOLONG = 905; /** SASL message too long */
constexpr NumericType SASLABORT = 906; /** SASL authentication aborted */
constexpr NumericType SASLALREADY = 907; /** Already SASL authenticated */
}
}
}

Loading…
Cancel
Save