summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-02-07 13:12:57 -0500
committerAdam <Adam@anope.org>2014-02-07 13:12:57 -0500
commitad962ad75978dd31c6af180a157722942f87aa11 (patch)
treeeac1f111ed3411f8619220fcf44963077498267e /include/modules
parent5327becf41beda4487f077a3f0157f7013ec6f13 (diff)
Allow other modules to suspend nicknames and channels without having to subclass suspendinfo
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/cs_suspend.h20
-rw-r--r--include/modules/suspend.h (renamed from include/modules/ns_suspend.h)12
2 files changed, 5 insertions, 27 deletions
diff --git a/include/modules/cs_suspend.h b/include/modules/cs_suspend.h
deleted file mode 100644
index db76b2443..000000000
--- a/include/modules/cs_suspend.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/* ChanServ core functions
- *
- * (C) 2003-2014 Anope Team
- * Contact us at team@anope.org
- *
- * Please read COPYING and README for further details.
- *
- * Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- */
-
-struct CSSuspendInfo
-{
- Anope::string chan, by, reason;
- time_t time, expires;
-
- virtual ~CSSuspendInfo() { }
- protected:
- CSSuspendInfo() { }
-};
diff --git a/include/modules/ns_suspend.h b/include/modules/suspend.h
index 9569ecad2..1e49b8ad8 100644
--- a/include/modules/ns_suspend.h
+++ b/include/modules/suspend.h
@@ -1,5 +1,4 @@
-/* NickServ core functions
- *
+/*
* (C) 2003-2014 Anope Team
* Contact us at team@anope.org
*
@@ -9,12 +8,11 @@
* Based on the original code of Services by Andy Church.
*/
-struct NSSuspendInfo
+struct SuspendInfo
{
- Anope::string nick, by, reason;
+ Anope::string what, by, reason;
time_t when, expires;
- virtual ~NSSuspendInfo() { }
- protected:
- NSSuspendInfo() { }
+ SuspendInfo() { }
+ virtual ~SuspendInfo() { }
};