diff options
Diffstat (limited to 'modules/commands')
-rw-r--r-- | modules/commands/bs_badwords.cpp | 2 | ||||
-rw-r--r-- | modules/commands/bs_bot.cpp | 2 | ||||
-rw-r--r-- | modules/commands/cs_entrymsg.cpp | 2 | ||||
-rw-r--r-- | modules/commands/cs_log.cpp | 4 | ||||
-rw-r--r-- | modules/commands/cs_mode.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_ajoin.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_group.cpp | 4 | ||||
-rw-r--r-- | modules/commands/ns_identify.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_recover.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_register.cpp | 4 | ||||
-rw-r--r-- | modules/commands/os_akill.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_chankill.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_ignore.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_jupe.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_reload.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_session.cpp | 4 | ||||
-rw-r--r-- | modules/commands/os_sxline.cpp | 4 |
17 files changed, 22 insertions, 22 deletions
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp index f44ea1b90..82e4e20b3 100644 --- a/modules/commands/bs_badwords.cpp +++ b/modules/commands/bs_badwords.cpp @@ -39,7 +39,7 @@ struct BadWordsImpl : BadWords BadWord* AddBadWord(const Anope::string &word, BadWordType type) override { - BadWordImpl *bw = new BadWordImpl(); + auto *bw = new BadWordImpl(); bw->chan = ci->name; bw->word = word; bw->type = type; diff --git a/modules/commands/bs_bot.cpp b/modules/commands/bs_bot.cpp index 807ea5ce3..6499e3baa 100644 --- a/modules/commands/bs_bot.cpp +++ b/modules/commands/bs_bot.cpp @@ -82,7 +82,7 @@ private: return; } - BotInfo *bi = new BotInfo(nick, user, host, real); + auto *bi = new BotInfo(nick, user, host, real); Log(LOG_ADMIN, source, this) << "ADD " << bi->GetMask() << " " << bi->realname; diff --git a/modules/commands/cs_entrymsg.cpp b/modules/commands/cs_entrymsg.cpp index 7ed117b93..2659428a4 100644 --- a/modules/commands/cs_entrymsg.cpp +++ b/modules/commands/cs_entrymsg.cpp @@ -92,7 +92,7 @@ Serializable* EntryMsgImpl::Unserialize(Serializable *obj, Serialize::Data &data data["when"] >> swhen; - EntryMsgImpl *m = new EntryMsgImpl(ci, screator, smessage, swhen); + auto *m = new EntryMsgImpl(ci, screator, smessage, swhen); (*messages)->push_back(m); return m; } diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp index 9daf22534..b955255f4 100644 --- a/modules/commands/cs_log.cpp +++ b/modules/commands/cs_log.cpp @@ -232,7 +232,7 @@ public: } } - LogSetting *log = new LogSettingImpl(); + auto *log = new LogSettingImpl(); log->chan = ci->name; log->service_name = service_name; if (bi) @@ -330,7 +330,7 @@ public: LogSettings *ls = logsettings.Require(ci); for (auto &d : defaults) { - LogSetting *log = new LogSettingImpl(); + auto *log = new LogSettingImpl(); log->chan = ci->name; if (!d.service.empty()) diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index cfdb748c0..27cd08fcb 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -76,7 +76,7 @@ struct ModeLocksImpl : ModeLocks if (setter.empty()) setter = ci->GetFounder() ? ci->GetFounder()->display : "Unknown"; - ModeLock *ml = new ModeLockImpl(); + auto *ml = new ModeLockImpl(); ml->ci = ci->name; ml->set = status; ml->name = mode->name; diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp index f5c48b9aa..9b63d6576 100644 --- a/modules/commands/ns_ajoin.cpp +++ b/modules/commands/ns_ajoin.cpp @@ -155,7 +155,7 @@ class CommandNSAJoin : public Command continue; } - AJoinEntry *entry = new AJoinEntry(nc); + auto *entry = new AJoinEntry(nc); entry->owner = nc; entry->channel = chan; entry->key = key; diff --git a/modules/commands/ns_group.cpp b/modules/commands/ns_group.cpp index 2d00ead02..fd735d506 100644 --- a/modules/commands/ns_group.cpp +++ b/modules/commands/ns_group.cpp @@ -178,7 +178,7 @@ public: if (ok == false && !pass.empty()) { - NSGroupRequest *req = new NSGroupRequest(owner, source, this, source.GetNick(), target, pass); + auto *req = new NSGroupRequest(owner, source, this, source.GetNick(), target, pass); FOREACH_MOD(OnCheckAuthentication, (source.GetUser(), req)); req->Dispatch(); } @@ -259,7 +259,7 @@ public: if (na->nick.equals_ci(oldcore->display)) oldcore->SetDisplay(oldcore->aliases->front()); - NickCore *nc = new NickCore(na->nick); + auto *nc = new NickCore(na->nick); na->nc = nc; nc->aliases->push_back(na); diff --git a/modules/commands/ns_identify.cpp b/modules/commands/ns_identify.cpp index fbcdff5fa..ebe8fbfe1 100644 --- a/modules/commands/ns_identify.cpp +++ b/modules/commands/ns_identify.cpp @@ -95,7 +95,7 @@ public: return; } - NSIdentifyRequest *req = new NSIdentifyRequest(owner, source, this, na ? na->nc->display : nick, pass); + auto *req = new NSIdentifyRequest(owner, source, this, na ? na->nc->display : nick, pass); FOREACH_MOD(OnCheckAuthentication, (u, req)); req->Dispatch(); } diff --git a/modules/commands/ns_recover.cpp b/modules/commands/ns_recover.cpp index fa70cd1ec..7836949a6 100644 --- a/modules/commands/ns_recover.cpp +++ b/modules/commands/ns_recover.cpp @@ -192,7 +192,7 @@ public: if (ok == false && !pass.empty()) { - NSRecoverRequest *req = new NSRecoverRequest(owner, source, this, na->nick, pass); + auto *req = new NSRecoverRequest(owner, source, this, na->nick, pass); FOREACH_MOD(OnCheckAuthentication, (source.GetUser(), req)); req->Dispatch(); } diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 18a965999..7fdca9d03 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -211,8 +211,8 @@ public: source.Reply(MAIL_X_INVALID, email.c_str()); else { - NickCore *nc = new NickCore(u_nick); - NickAlias *na = new NickAlias(u_nick, nc); + auto *nc = new NickCore(u_nick); + auto *na = new NickAlias(u_nick, nc); Anope::Encrypt(pass, nc->pass); if (!email.empty()) nc->email = email; diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp index 01310444b..57adea53e 100644 --- a/modules/commands/os_akill.cpp +++ b/modules/commands/os_akill.cpp @@ -167,7 +167,7 @@ private: return; } - XLine *x = new XLine(mask, source.GetNick(), expires, reason); + auto *x = new XLine(mask, source.GetNick(), expires, reason); if (Config->GetModule("operserv")->Get<bool>("akillids")) x->id = XLineManager::GenerateUID(); diff --git a/modules/commands/os_chankill.cpp b/modules/commands/os_chankill.cpp index bc31a2180..e27929143 100644 --- a/modules/commands/os_chankill.cpp +++ b/modules/commands/os_chankill.cpp @@ -78,7 +78,7 @@ public: if (akills->HasEntry(akillmask)) continue; - XLine *x = new XLine(akillmask, source.GetNick(), expires, realreason, XLineManager::GenerateUID()); + auto *x = new XLine(akillmask, source.GetNick(), expires, realreason, XLineManager::GenerateUID()); akills->AddXLine(x); akills->OnMatch(uc->user, x); } diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp index 774034c64..3fe820bce 100644 --- a/modules/commands/os_ignore.cpp +++ b/modules/commands/os_ignore.cpp @@ -221,7 +221,7 @@ private: if (Anope::ReadOnly) source.Reply(READ_ONLY_MODE); - IgnoreData *ign = new IgnoreDataImpl(); + auto *ign = new IgnoreDataImpl(); ign->mask = mask; ign->creator = source.GetNick(); ign->reason = reason; diff --git a/modules/commands/os_jupe.cpp b/modules/commands/os_jupe.cpp index 33757153f..7e2189708 100644 --- a/modules/commands/os_jupe.cpp +++ b/modules/commands/os_jupe.cpp @@ -42,7 +42,7 @@ public: IRCD->SendSquit(server, rbuf); server->Delete(rbuf); } - Server *juped_server = new Server(Me, jserver, 1, rbuf, sid, true); + auto *juped_server = new Server(Me, jserver, 1, rbuf, sid, true); IRCD->SendServer(juped_server); Log(LOG_ADMIN, source, this) << "on " << jserver << " (" << rbuf << ")"; diff --git a/modules/commands/os_reload.cpp b/modules/commands/os_reload.cpp index 9d173779f..d364aeb88 100644 --- a/modules/commands/os_reload.cpp +++ b/modules/commands/os_reload.cpp @@ -25,7 +25,7 @@ public: { Log(LOG_ADMIN, source, this); - Configuration::Conf *new_config = new Configuration::Conf(); + auto *new_config = new Configuration::Conf(); Configuration::Conf *old = Config; Config = new_config; Config->Post(old); 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"; diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp index c15ae9af5..6a0fcae9e 100644 --- a/modules/commands/os_sxline.cpp +++ b/modules/commands/os_sxline.cpp @@ -366,7 +366,7 @@ class CommandOSSNLine : public CommandOSSXLineBase return; } - XLine *x = new XLine(mask, source.GetNick(), expires, reason); + auto *x = new XLine(mask, source.GetNick(), expires, reason); if (Config->GetModule("operserv")->Get<bool>("akillids")) x->id = XLineManager::GenerateUID(); @@ -572,7 +572,7 @@ class CommandOSSQLine : public CommandOSSXLineBase return; } - XLine *x = new XLine(mask, source.GetNick(), expires, reason); + auto *x = new XLine(mask, source.GetNick(), expires, reason); if (Config->GetModule("operserv")->Get<bool>("akillids")) x->id = XLineManager::GenerateUID(); |