summaryrefslogtreecommitdiff
path: root/modules/commands/cs_suspend.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-06-27 16:23:17 -0400
committerAdam <Adam@anope.org>2012-07-01 22:26:05 -0400
commit9b5f6d3c45987f29a6270b0cc3e8327c232ab991 (patch)
treec908ec5fe94d9ae51f078e3679d382ef6da71cdc /modules/commands/cs_suspend.cpp
parentaf24dc605079e2a37fb013e3c1f72b0d916b61a4 (diff)
Remove ExtensibleString everywhere
Diffstat (limited to 'modules/commands/cs_suspend.cpp')
-rw-r--r--modules/commands/cs_suspend.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp
index b0ffa3e4c..e7969c926 100644
--- a/modules/commands/cs_suspend.cpp
+++ b/modules/commands/cs_suspend.cpp
@@ -13,11 +13,6 @@
#include "module.h"
-struct ExtensibleString : Anope::string, ExtensibleItem
-{
- ExtensibleString(const Anope::string &s) : Anope::string(s) { }
-};
-
struct ChanSuspend : ExtensibleItem, Serializable
{
Anope::string chan;
@@ -106,9 +101,9 @@ class CommandCSSuspend : public Command
}
ci->SetFlag(CI_SUSPENDED);
- ci->Extend("suspend_by", new ExtensibleString(source.GetNick()));
+ ci->Extend("suspend_by", new ExtensibleItemClass<Anope::string>(source.GetNick()));
if (!reason.empty())
- ci->Extend("suspend_reason", new ExtensibleString(reason));
+ ci->Extend("suspend_reason", new ExtensibleItemClass<Anope::string>(reason));
if (ci->c)
{
@@ -185,7 +180,7 @@ class CommandCSUnSuspend : public Command
return;
}
- Anope::string *by = ci->GetExt<ExtensibleString *>("suspend_by"), *reason = ci->GetExt<ExtensibleString *>("suspend_reason");
+ Anope::string *by = ci->GetExt<ExtensibleItemClass<Anope::string> *>("suspend_by"), *reason = ci->GetExt<ExtensibleItemClass<Anope::string> *>("suspend_reason");
if (by != NULL)
Log(LOG_ADMIN, source, this, ci) << " which was suspended by " << *by << " for: " << (reason && !reason->empty() ? *reason : "No reason");