diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-06 13:23:37 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-06 13:23:37 +0000 |
commit | a9ab0c72a69cacc597e91870f50622de0334f9a7 (patch) | |
tree | 57665546eb565fa608a203aca5f4ac65dc57a6f3 /modules/commands/os_session.cpp | |
parent | de918ef9cfb652b20b215d0d2f6622eb9a117b2c (diff) |
Use auto in places where the type is unambiguous.
Diffstat (limited to 'modules/commands/os_session.cpp')
-rw-r--r-- | modules/commands/os_session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp index b61babff8..c04f507e4 100644 --- a/modules/commands/os_session.cpp +++ b/modules/commands/os_session.cpp @@ -358,7 +358,7 @@ private: } } - Exception *exception = new Exception(); + auto *exception = new Exception(); exception->mask = mask; exception->limit = limit; exception->reason = reason; @@ -671,7 +671,7 @@ public: const Anope::string &akillmask = "*@" + session->addr.mask(); if (max_session_kill && session->hits >= max_session_kill && akills && !akills->HasEntry(akillmask)) { - XLine *x = new XLine(akillmask, OperServ ? OperServ->nick : "", Anope::CurTime + session_autokill_expiry, "Session limit exceeded", XLineManager::GenerateUID()); + auto *x = new XLine(akillmask, OperServ ? OperServ->nick : "", Anope::CurTime + session_autokill_expiry, "Session limit exceeded", XLineManager::GenerateUID()); akills->AddXLine(x); akills->Send(NULL, x); Log(OperServ, "akill/session") << "Added a temporary AKILL for \002" << akillmask << "\002 due to excessive connections"; |