1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 22:03:14 +02:00

Simplify InspIRCd user metadata handler slightly.

This commit is contained in:
Sadie Powell
2024-05-01 20:20:47 +01:00
parent be3822523b
commit 4cfee23303
+4 -7
View File
@@ -1855,12 +1855,12 @@ public:
}
else if (isdigit(params[0][0]))
{
auto *u = User::Find(params[0]);
if (!u)
return;
if (params[1].equals_cs("accountname"))
{
User *u = User::Find(params[0]);
if (!u)
return; // Should never happen.
if (params[2].empty())
{
// The user has been logged out by the IRC server.
@@ -1883,9 +1883,6 @@ public:
*/
else if (params[1].equals_cs("ssl_cert"))
{
User *u = User::Find(params[0]);
if (!u)
return;
u->Extend<bool>("ssl");
Anope::string data = params[2].c_str();
size_t pos1 = data.find(' ') + 1;