summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-01-25 15:48:07 -0500
committerAdam <Adam@anope.org>2012-01-25 15:48:07 -0500
commit52eaa7d6d61e3373340fd5a69b92b0fb3b5609e0 (patch)
tree428f2b440ab5675ae3a9c19ae5b813f132497c79 /modules/commands
parente88e37c59b45cc43b714d1d28719eb3c2ca9579a (diff)
Windows
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/bs_badwords.cpp10
-rw-r--r--modules/commands/cs_access.cpp2
-rw-r--r--modules/commands/cs_flags.cpp2
-rw-r--r--modules/commands/cs_log.cpp2
-rw-r--r--modules/commands/cs_saset.cpp2
-rw-r--r--modules/commands/cs_set.cpp2
-rw-r--r--modules/commands/cs_xop.cpp2
-rw-r--r--modules/commands/help.cpp4
-rw-r--r--modules/commands/ns_saset.cpp2
-rw-r--r--modules/commands/ns_set.cpp2
-rw-r--r--modules/commands/os_akill.cpp2
-rw-r--r--modules/commands/os_chankill.cpp2
-rw-r--r--modules/commands/os_defcon.cpp4
-rw-r--r--modules/commands/os_forbid.cpp48
-rw-r--r--modules/commands/os_forbid.h6
-rw-r--r--modules/commands/os_ignore.h6
-rw-r--r--modules/commands/os_modinfo.cpp4
-rw-r--r--modules/commands/os_news.cpp26
-rw-r--r--modules/commands/os_news.h6
-rw-r--r--modules/commands/os_oper.cpp6
-rw-r--r--modules/commands/os_session.cpp4
-rw-r--r--modules/commands/os_session.h6
-rw-r--r--modules/commands/os_stats.cpp2
-rw-r--r--modules/commands/os_sxline.cpp4
24 files changed, 78 insertions, 78 deletions
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp
index 8b92377c7..a700fa6c9 100644
--- a/modules/commands/bs_badwords.cpp
+++ b/modules/commands/bs_badwords.cpp
@@ -128,7 +128,7 @@ class CommandBSBadwords : public Command
void DoAdd(CommandSource &source, ChannelInfo *ci, const Anope::string &word)
{
size_t pos = word.rfind(' ');
- BadWordType type = BW_ANY;
+ BadWordType bwtype = BW_ANY;
Anope::string realword = word;
if (pos != Anope::string::npos)
@@ -137,11 +137,11 @@ class CommandBSBadwords : public Command
if (!opt.empty())
{
if (opt.equals_ci("SINGLE"))
- type = BW_SINGLE;
+ bwtype = BW_SINGLE;
else if (opt.equals_ci("START"))
- type = BW_START;
+ bwtype = BW_START;
else if (opt.equals_ci("END"))
- type = BW_END;
+ bwtype = BW_END;
}
realword = word.substr(0, pos);
}
@@ -165,7 +165,7 @@ class CommandBSBadwords : public Command
bool override = !ci->AccessFor(source.u).HasPriv("BADWORDS");
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source.u, this, ci) << "ADD " << realword;
- ci->AddBadWord(realword, type);
+ ci->AddBadWord(realword, bwtype);
source.Reply(_("\002%s\002 added to %s bad words list."), realword.c_str(), ci->name.c_str());
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp
index ae1a848c9..3c36fabbd 100644
--- a/modules/commands/cs_access.cpp
+++ b/modules/commands/cs_access.cpp
@@ -148,7 +148,7 @@ class CommandCSAccess : public Command
return;
}
- service_reference<AccessProvider> provider("access/access");
+ service_reference<AccessProvider> provider("AccessProvider", "access/access");
if (!provider)
return;
AccessChanAccess *access = debug_cast<AccessChanAccess *>(provider->Create());
diff --git a/modules/commands/cs_flags.cpp b/modules/commands/cs_flags.cpp
index 811730e27..0e48f59c7 100644
--- a/modules/commands/cs_flags.cpp
+++ b/modules/commands/cs_flags.cpp
@@ -184,7 +184,7 @@ class CommandCSFlags : public Command
return;
}
- service_reference<AccessProvider> provider("access/flags");
+ service_reference<AccessProvider> provider("AccessProvider", "access/flags");
if (!provider)
return;
FlagsChanAccess *access = debug_cast<FlagsChanAccess *>(provider->Create());
diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp
index a94608b4c..35f8831e6 100644
--- a/modules/commands/cs_log.cpp
+++ b/modules/commands/cs_log.cpp
@@ -88,7 +88,7 @@ public:
return;
}
- service_reference<Command> c_service(bi->commands[command_name].name);
+ service_reference<Command> c_service("Command", bi->commands[command_name].name);
if (!c_service)
{
source.Reply(_("%s is not a valid command."), command.c_str());
diff --git a/modules/commands/cs_saset.cpp b/modules/commands/cs_saset.cpp
index ad0df3d76..3290e7cc3 100644
--- a/modules/commands/cs_saset.cpp
+++ b/modules/commands/cs_saset.cpp
@@ -43,7 +43,7 @@ class CommandCSSASet : public Command
CommandInfo &info = it->second;
if (c_name.find_ci(this_name + " ") == 0)
{
- service_reference<Command> command(info.name);
+ service_reference<Command> command("Command", info.name);
if (command)
{
source.command = it->first;
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index e76164332..9a63c8335 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -43,7 +43,7 @@ class CommandCSSet : public Command
CommandInfo &info = it->second;
if (c_name.find_ci(this_name + " ") == 0)
{
- service_reference<Command> command(info.name);
+ service_reference<Command> command("Command", info.name);
if (command)
{
source.command = it->first;
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp
index 58fd99ba2..39789bf89 100644
--- a/modules/commands/cs_xop.cpp
+++ b/modules/commands/cs_xop.cpp
@@ -251,7 +251,7 @@ class XOPBase : public Command
return;
}
- service_reference<AccessProvider> provider("access/xop");
+ service_reference<AccessProvider> provider("AccessProvider", "access/xop");
if (!provider)
return;
XOPChanAccess *acc = debug_cast<XOPChanAccess *>(provider->Create());
diff --git a/modules/commands/help.cpp b/modules/commands/help.cpp
index dc0c3864d..a7356c0d0 100644
--- a/modules/commands/help.cpp
+++ b/modules/commands/help.cpp
@@ -45,7 +45,7 @@ class CommandHelp : public Command
if (cmd != it->first && bi->commands.count(cmd))
continue;
- service_reference<Command> c(info.name);
+ service_reference<Command> c("Command", info.name);
if (!c)
continue;
if (!Config->HidePrivilegedCommands || info.permission.empty() || u->HasCommand(info.permission))
@@ -71,7 +71,7 @@ class CommandHelp : public Command
CommandInfo &info = it->second;
- service_reference<Command> c(info.name);
+ service_reference<Command> c("Command", info.name);
if (!c)
continue;
diff --git a/modules/commands/ns_saset.cpp b/modules/commands/ns_saset.cpp
index 0afd08c15..793c8c670 100644
--- a/modules/commands/ns_saset.cpp
+++ b/modules/commands/ns_saset.cpp
@@ -40,7 +40,7 @@ class CommandNSSASet : public Command
if (c_name.find_ci(this_name + " ") == 0)
{
- service_reference<Command> command(info.name);
+ service_reference<Command> command("Command", info.name);
if (command)
{
source.command = c_name;
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index 4f5d6e5b5..b52bec52a 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -41,7 +41,7 @@ class CommandNSSet : public Command
if (c_name.find_ci(this_name + " ") == 0)
{
- service_reference<Command> command(info.name);
+ service_reference<Command> command("Command", info.name);
if (command)
{
source.command = c_name;
diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp
index db303a2f3..c34e932b0 100644
--- a/modules/commands/os_akill.cpp
+++ b/modules/commands/os_akill.cpp
@@ -13,7 +13,7 @@
#include "module.h"
-static service_reference<XLineManager> akills("xlinemanager/sgline");
+static service_reference<XLineManager> akills("XLineManager", "xlinemanager/sgline");
class AkillDelCallback : public NumberList
{
diff --git a/modules/commands/os_chankill.cpp b/modules/commands/os_chankill.cpp
index 19b202f6d..43ac0b3ee 100644
--- a/modules/commands/os_chankill.cpp
+++ b/modules/commands/os_chankill.cpp
@@ -13,7 +13,7 @@
#include "module.h"
-static service_reference<XLineManager> akills("xlinemanager/sgline");
+static service_reference<XLineManager> akills("XLineManager", "xlinemanager/sgline");
class CommandOSChanKill : public Command
{
diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp
index 2905b07bf..7e40a5c02 100644
--- a/modules/commands/os_defcon.cpp
+++ b/modules/commands/os_defcon.cpp
@@ -243,7 +243,7 @@ class CommandOSDefcon : public Command
class OSDefcon : public Module
{
- service_reference<SessionService, Base> session_service;
+ service_reference<SessionService> session_service;
service_reference<XLineManager> akills;
CommandOSDefcon commandosdefcon;
@@ -335,7 +335,7 @@ class OSDefcon : public Module
}
public:
- OSDefcon(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), session_service("session"), akills("xlinemanager/sgline"), commandosdefcon(this)
+ OSDefcon(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), session_service("SessionService", "session"), akills("XLineManager", "xlinemanager/sgline"), commandosdefcon(this)
{
this->SetAuthor("Anope");
diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp
index b5d9876fb..a60b362db 100644
--- a/modules/commands/os_forbid.cpp
+++ b/modules/commands/os_forbid.cpp
@@ -34,14 +34,14 @@ class MyForbidService : public ForbidService
delete d;
}
- ForbidData *FindForbid(const Anope::string &mask, ForbidType type)
+ ForbidData *FindForbid(const Anope::string &mask, ForbidType ftype)
{
const std::vector<ForbidData *> &forbids = this->GetForbids();
for (unsigned i = forbids.size(); i > 0; --i)
{
ForbidData *d = this->forbidData[i - 1];
- if ((type == FT_NONE || type == d->type) && Anope::Match(mask, d->mask))
+ if ((ftype == FT_NONE || ftype == d->type) && Anope::Match(mask, d->mask))
return d;
}
return NULL;
@@ -55,15 +55,15 @@ class MyForbidService : public ForbidService
if (d->expires && Anope::CurTime >= d->expires)
{
- Anope::string type = "none";
+ Anope::string ftype = "none";
if (d->type == FT_NICK)
- type = "nick";
+ ftype = "nick";
else if (d->type == FT_CHAN)
- type = "chan";
+ ftype = "chan";
else if (d->type == FT_EMAIL)
- type = "email";
+ ftype = "email";
- Log(LOG_NORMAL, Config->OperServ + "/forbid") << "Expiring forbid for " << d->mask << " type " << type;
+ Log(LOG_NORMAL, Config->OperServ + "/forbid") << "Expiring forbid for " << d->mask << " type " << ftype;
this->forbidData.erase(this->forbidData.begin() + i - 1);
delete d;
}
@@ -75,9 +75,9 @@ class MyForbidService : public ForbidService
class CommandOSForbid : public Command
{
- service_reference<ForbidService, Base> fs;
+ service_reference<ForbidService> fs;
public:
- CommandOSForbid(Module *creator) : Command(creator, "operserv/forbid", 1, 5), fs("forbid")
+ CommandOSForbid(Module *creator) : Command(creator, "operserv/forbid", 1, 5), fs("ForbidService", "forbid")
{
this->SetDesc(_("Forbid usage of nicknames, channels, and emails"));
this->SetSyntax(_("ADD {NICK|CHAN|EMAIL} [+\037expiry\037] \037entry\037\002 [\037reason\037]"));
@@ -93,15 +93,15 @@ class CommandOSForbid : public Command
const Anope::string &command = params[0];
const Anope::string &subcommand = params.size() > 1 ? params[1] : "";
- ForbidType type = FT_NONE;
+ ForbidType ftype = FT_NONE;
if (subcommand.equals_ci("NICK"))
- type = FT_NICK;
+ ftype = FT_NICK;
else if (subcommand.equals_ci("CHAN"))
- type = FT_CHAN;
+ ftype = FT_CHAN;
else if (subcommand.equals_ci("EMAIL"))
- type = FT_EMAIL;
+ ftype = FT_EMAIL;
- if (command.equals_ci("ADD") && params.size() > 3 && type != FT_NONE)
+ if (command.equals_ci("ADD") && params.size() > 3 && ftype != FT_NONE)
{
const Anope::string &expiry = params[2][0] == '+' ? params[2] : "";
const Anope::string &entry = !expiry.empty() ? params[3] : params[2];
@@ -127,7 +127,7 @@ class CommandOSForbid : public Command
expiryt += Anope::CurTime;
}
- ForbidData *d = this->fs->FindForbid(entry, type);
+ ForbidData *d = this->fs->FindForbid(entry, ftype);
bool created = false;
if (d == NULL)
{
@@ -140,18 +140,18 @@ class CommandOSForbid : public Command
d->reason = reason;
d->created = Anope::CurTime;
d->expires = expiryt;
- d->type = type;
+ d->type = ftype;
if (created)
this->fs->AddForbid(d);
Log(LOG_ADMIN, source.u, this) << "to add a forbid on " << entry << " of type " << subcommand;
- source.Reply(_("Added a%s forbid on %s to expire on %s"), type == FT_CHAN ? "n" : "", entry.c_str(), d->expires ? do_strftime(d->expires).c_str() : "never");
+ source.Reply(_("Added a%s forbid on %s to expire on %s"), ftype == FT_CHAN ? "n" : "", entry.c_str(), d->expires ? do_strftime(d->expires).c_str() : "never");
}
- else if (command.equals_ci("DEL") && params.size() > 2 && type != FT_NONE)
+ else if (command.equals_ci("DEL") && params.size() > 2 && ftype != FT_NONE)
{
const Anope::string &entry = params[2];
- ForbidData *d = this->fs->FindForbid(entry, type);
+ ForbidData *d = this->fs->FindForbid(entry, ftype);
if (d != NULL)
{
Log(LOG_ADMIN, source.u, this) << "to remove forbid " << d->mask << " of type " << subcommand;
@@ -175,19 +175,19 @@ class CommandOSForbid : public Command
{
ForbidData *d = forbids[i];
- Anope::string ftype;
+ Anope::string stype;
if (d->type == FT_NICK)
- ftype = "NICK";
+ stype = "NICK";
else if (d->type == FT_CHAN)
- ftype = "CHAN";
+ stype = "CHAN";
else if (d->type == FT_EMAIL)
- ftype = "EMAIL";
+ stype = "EMAIL";
else
continue;
ListFormatter::ListEntry entry;
entry["Mask"] = d->mask;
- entry["Type"] = ftype;
+ entry["Type"] = stype;
entry["Creator"] = d->creator;
entry["Expires"] = d->expires ? do_strftime(d->expires).c_str() : "never";
entry["Reason"] = d->reason;
diff --git a/modules/commands/os_forbid.h b/modules/commands/os_forbid.h
index 1ccb36e91..98e5fdc81 100644
--- a/modules/commands/os_forbid.h
+++ b/modules/commands/os_forbid.h
@@ -23,10 +23,10 @@ struct ForbidData : Serializable
static void unserialize(serialized_data &data);
};
-class ForbidService : public Service<Base>
+class ForbidService : public Service
{
public:
- ForbidService(Module *m) : Service<Base>(m, "forbid") { }
+ ForbidService(Module *m) : Service(m, "ForbidService", "forbid") { }
virtual void AddForbid(ForbidData *d) = 0;
@@ -37,7 +37,7 @@ class ForbidService : public Service<Base>
virtual const std::vector<ForbidData *> &GetForbids() = 0;
};
-static service_reference<ForbidService, Base> forbid_service("forbid");
+static service_reference<ForbidService> forbid_service("ForbidService", "forbid");
Serializable::serialized_data ForbidData::serialize()
{
diff --git a/modules/commands/os_ignore.h b/modules/commands/os_ignore.h
index d59ab6a5f..4a47c947f 100644
--- a/modules/commands/os_ignore.h
+++ b/modules/commands/os_ignore.h
@@ -22,12 +22,12 @@ struct IgnoreData : Serializable
static void unserialize(serialized_data &data);
};
-class IgnoreService : public Service<Base>
+class IgnoreService : public Service
{
protected:
std::list<IgnoreData> ignores;
- IgnoreService(Module *c) : Service<Base>(c, "ignore") { }
+ IgnoreService(Module *c) : Service(c, "IgnoreService", "ignore") { }
public:
virtual void AddIgnore(const Anope::string &mask, const Anope::string &creator, const Anope::string &reason, time_t delta = Anope::CurTime) = 0;
@@ -41,7 +41,7 @@ class IgnoreService : public Service<Base>
inline std::list<IgnoreData> &GetIgnores() { return this->ignores; }
};
-static service_reference<IgnoreService, Base> ignore_service("ignore");
+static service_reference<IgnoreService> ignore_service("IgnoreService", "ignore");
Serializable::serialized_data IgnoreData::serialize()
{
diff --git a/modules/commands/os_modinfo.cpp b/modules/commands/os_modinfo.cpp
index 0fd0ff5bd..75859a762 100644
--- a/modules/commands/os_modinfo.cpp
+++ b/modules/commands/os_modinfo.cpp
@@ -31,10 +31,10 @@ class CommandOSModInfo : public Command
{
source.Reply(_("Module: \002%s\002 Version: \002%s\002 Author: \002%s\002 loaded: \002%s\002"), m->name.c_str(), !m->version.empty() ? m->version.c_str() : "?", !m->author.empty() ? m->author.c_str() : "?", do_strftime(m->created).c_str());
- std::vector<Anope::string> servicekeys = Service<Command>::GetServiceKeys();
+ std::vector<Anope::string> servicekeys = Service::GetServiceKeys("Command");
for (unsigned i = 0; i < servicekeys.size(); ++i)
{
- Command *c = Service<Command>::FindService(servicekeys[i]);
+ service_reference<Command> c("Command", servicekeys[i]);
if (!c || c->owner != m)
continue;
diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp
index 466f583b0..1f96337cd 100644
--- a/modules/commands/os_news.cpp
+++ b/modules/commands/os_news.cpp
@@ -106,12 +106,12 @@ static const char **findmsgs(NewsType type)
class NewsBase : public Command
{
- service_reference<NewsService, Base> ns;
+ service_reference<NewsService> ns;
protected:
- void DoList(CommandSource &source, NewsType type, const char **msgs)
+ void DoList(CommandSource &source, NewsType ntype, const char **msgs)
{
- std::vector<NewsItem *> &list = this->ns->GetNewsList(type);
+ std::vector<NewsItem *> &list = this->ns->GetNewsList(ntype);
if (list.empty())
source.Reply(msgs[MSG_LIST_NONE]);
else
@@ -143,7 +143,7 @@ class NewsBase : public Command
return;
}
- void DoAdd(CommandSource &source, const std::vector<Anope::string> &params, NewsType type, const char **msgs)
+ void DoAdd(CommandSource &source, const std::vector<Anope::string> &params, NewsType ntype, const char **msgs)
{
const Anope::string text = params.size() > 1 ? params[1] : "";
@@ -155,7 +155,7 @@ class NewsBase : public Command
source.Reply(READ_ONLY_MODE);
NewsItem *news = new NewsItem();
- news->type = type;
+ news->type = ntype;
news->text = text;
news->time = Anope::CurTime;
news->who = source.u->nick;
@@ -168,7 +168,7 @@ class NewsBase : public Command
return;
}
- void DoDel(CommandSource &source, const std::vector<Anope::string> &params, NewsType type, const char **msgs)
+ void DoDel(CommandSource &source, const std::vector<Anope::string> &params, NewsType ntype, const char **msgs)
{
const Anope::string &text = params.size() > 1 ? params[1] : "";
@@ -176,7 +176,7 @@ class NewsBase : public Command
this->OnSyntaxError(source, "DEL");
else
{
- std::vector<NewsItem *> &list = this->ns->GetNewsList(type);
+ std::vector<NewsItem *> &list = this->ns->GetNewsList(ntype);
if (list.empty())
source.Reply(msgs[MSG_LIST_NONE]);
else
@@ -211,30 +211,30 @@ class NewsBase : public Command
return;
}
- void DoNews(CommandSource &source, const std::vector<Anope::string> &params, NewsType type)
+ void DoNews(CommandSource &source, const std::vector<Anope::string> &params, NewsType ntype)
{
if (!this->ns)
return;
const Anope::string &cmd = params[0];
- const char **msgs = findmsgs(type);
+ const char **msgs = findmsgs(ntype);
if (!msgs)
throw CoreException("news: Invalid type to do_news()");
if (cmd.equals_ci("LIST"))
- return this->DoList(source, type, msgs);
+ return this->DoList(source, ntype, msgs);
else if (cmd.equals_ci("ADD"))
- return this->DoAdd(source, params, type, msgs);
+ return this->DoAdd(source, params, ntype, msgs);
else if (cmd.equals_ci("DEL"))
- return this->DoDel(source, params, type, msgs);
+ return this->DoDel(source, params, ntype, msgs);
else
this->OnSyntaxError(source, "");
return;
}
public:
- NewsBase(Module *creator, const Anope::string &newstype) : Command(creator, newstype, 1, 2), ns("news")
+ NewsBase(Module *creator, const Anope::string &newstype) : Command(creator, newstype, 1, 2), ns("NewsService", "news")
{
this->SetSyntax(_("ADD \037text\037"));
this->SetSyntax(_("DEL {\037num\037 | ALL}"));
diff --git a/modules/commands/os_news.h b/modules/commands/os_news.h
index 02e2c8147..7bc36d987 100644
--- a/modules/commands/os_news.h
+++ b/modules/commands/os_news.h
@@ -27,10 +27,10 @@ struct NewsItem : Serializable
static void unserialize(serialized_data &data);
};
-class NewsService : public Service<Base>
+class NewsService : public Service
{
public:
- NewsService(Module *m) : Service<Base>(m, "news") { }
+ NewsService(Module *m) : Service(m, "NewsService", "news") { }
virtual void AddNewsItem(NewsItem *n) = 0;
@@ -39,7 +39,7 @@ class NewsService : public Service<Base>
virtual std::vector<NewsItem *> &GetNewsList(NewsType t) = 0;
};
-static service_reference<NewsService, Base> news_service("news");
+static service_reference<NewsService> news_service("NewsService", "news");
Serializable::serialized_data NewsItem::serialize()
{
diff --git a/modules/commands/os_oper.cpp b/modules/commands/os_oper.cpp
index 0a245928c..6b5ebc0ed 100644
--- a/modules/commands/os_oper.cpp
+++ b/modules/commands/os_oper.cpp
@@ -65,7 +65,7 @@ class CommandOSOper : public Command
if (subcommand.equals_ci("ADD") && params.size() > 2)
{
const Anope::string &oper = params[1];
- const Anope::string &type = params[2];
+ const Anope::string &otype = params[2];
NickAlias *na = findnick(oper);
if (na == NULL)
@@ -74,9 +74,9 @@ class CommandOSOper : public Command
source.Reply(_("Nick \2%s\2 is already an operator."), na->nick.c_str());
else
{
- OperType *ot = OperType::Find(type);
+ OperType *ot = OperType::Find(otype);
if (ot == NULL)
- source.Reply(_("Oper type \2%s\2 has not been configured."), type.c_str());
+ source.Reply(_("Oper type \2%s\2 has not been configured."), otype.c_str());
else
{
na->nc->o = new MyOper(na->nc->display, ot);
diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp
index 1e48baf5d..c35be7b09 100644
--- a/modules/commands/os_session.cpp
+++ b/modules/commands/os_session.cpp
@@ -605,7 +605,7 @@ class OSSession : public Module
ExpireTimer expiretimer;
CommandOSSession commandossession;
CommandOSException commandosexception;
- service_reference<XLineManager, Base> akills;
+ service_reference<XLineManager> akills;
void AddSession(User *u, bool exempt)
{
@@ -693,7 +693,7 @@ class OSSession : public Module
public:
OSSession(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE),
- exception_type("Exception", Exception::unserialize), ss(this), commandossession(this), commandosexception(this), akills("xlinemanager/sgline")
+ exception_type("Exception", Exception::unserialize), ss(this), commandossession(this), commandosexception(this), akills("XLineManager", "xlinemanager/sgline")
{
this->SetAuthor("Anope");
diff --git a/modules/commands/os_session.h b/modules/commands/os_session.h
index 898c40fa5..67927410d 100644
--- a/modules/commands/os_session.h
+++ b/modules/commands/os_session.h
@@ -16,13 +16,13 @@ struct Exception : Serializable
};
-class SessionService : public Service<Base>
+class SessionService : public Service
{
public:
typedef Anope::map<Session *> SessionMap;
typedef std::vector<Exception *> ExceptionVector;
- SessionService(Module *m) : Service<Base>(m, "session") { }
+ SessionService(Module *m) : Service(m, "SessionService", "session") { }
virtual void AddException(Exception *e) = 0;
@@ -43,7 +43,7 @@ class SessionService : public Service<Base>
virtual SessionMap &GetSessions() = 0;
};
-static service_reference<SessionService, Base> session_service("session");
+static service_reference<SessionService> session_service("SessionService", "session");
Serializable::serialized_data Exception::serialize()
{
diff --git a/modules/commands/os_stats.cpp b/modules/commands/os_stats.cpp
index ef5436ba4..994b330ab 100644
--- a/modules/commands/os_stats.cpp
+++ b/modules/commands/os_stats.cpp
@@ -135,7 +135,7 @@ class CommandOSStats : public Command
public:
CommandOSStats(Module *creator) : Command(creator, "operserv/stats", 0, 1),
- akills("xlinemanager/sgline"), snlines("xlinemanager/snline"), sqlines("xlinemanager/sqline")
+ akills("XLineManager", "xlinemanager/sgline"), snlines("XLineManager", "xlinemanager/snline"), sqlines("XLineManager", "xlinemanager/sqline")
{
this->SetDesc(_("Show status of Services and network"));
this->SetSyntax(_("[AKILL | ALL | RESET | UPLINK]"));
diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp
index 90c218e1b..db2cad0e7 100644
--- a/modules/commands/os_sxline.cpp
+++ b/modules/commands/os_sxline.cpp
@@ -390,7 +390,7 @@ class CommandOSSNLine : public CommandOSSXLineBase
service_reference<XLineManager> snlines;
public:
- CommandOSSNLine(Module *creator) : CommandOSSXLineBase(creator, "operserv/snline"), snlines("xlinemanager/snline")
+ CommandOSSNLine(Module *creator) : CommandOSSXLineBase(creator, "operserv/snline"), snlines("XLineManager", "xlinemanager/snline")
{
this->SetSyntax(_("ADD [+\037expiry\037] \037mask\037:\037reason\037"));
this->SetSyntax(_("DEL {\037mask\037 | \037entry-num\037 | \037list\037 | \037id\037}"));
@@ -589,7 +589,7 @@ class CommandOSSQLine : public CommandOSSXLineBase
service_reference<XLineManager> sqlines;
public:
- CommandOSSQLine(Module *creator) : CommandOSSXLineBase(creator, "operserv/sqline"), sqlines("xlinemanager/sqline")
+ CommandOSSQLine(Module *creator) : CommandOSSXLineBase(creator, "operserv/sqline"), sqlines("XLineManager", "xlinemanager/sqline")
{
this->SetSyntax(_("ADD [+\037expiry\037] \037mask\037 \037reason\037"));
this->SetSyntax(_("DEL {\037mask\037 | \037entry-num\037 | \037list\037 | \037id\037}"));