From ad962ad75978dd31c6af180a157722942f87aa11 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 7 Feb 2014 13:12:57 -0500 Subject: Allow other modules to suspend nicknames and channels without having to subclass suspendinfo --- include/modules/cs_suspend.h | 20 -------------------- include/modules/ns_suspend.h | 20 -------------------- include/modules/suspend.h | 18 ++++++++++++++++++ 3 files changed, 18 insertions(+), 40 deletions(-) delete mode 100644 include/modules/cs_suspend.h delete mode 100644 include/modules/ns_suspend.h create mode 100644 include/modules/suspend.h (limited to 'include/modules') 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/ns_suspend.h deleted file mode 100644 index 9569ecad2..000000000 --- a/include/modules/ns_suspend.h +++ /dev/null @@ -1,20 +0,0 @@ -/* NickServ 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 NSSuspendInfo -{ - Anope::string nick, by, reason; - time_t when, expires; - - virtual ~NSSuspendInfo() { } - protected: - NSSuspendInfo() { } -}; diff --git a/include/modules/suspend.h b/include/modules/suspend.h new file mode 100644 index 000000000..1e49b8ad8 --- /dev/null +++ b/include/modules/suspend.h @@ -0,0 +1,18 @@ +/* + * (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 SuspendInfo +{ + Anope::string what, by, reason; + time_t when, expires; + + SuspendInfo() { } + virtual ~SuspendInfo() { } +}; -- cgit