summaryrefslogtreecommitdiff
path: root/include/timers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/timers.h')
-rw-r--r--include/timers.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/include/timers.h b/include/timers.h
index b15d2899f..1425a8fc4 100644
--- a/include/timers.h
+++ b/include/timers.h
@@ -1,16 +1,23 @@
-/* Timer include stuff.
+/*
+ * Anope IRC Services
*
- * (C) 2003-2016 Anope Team
- * Contact us at team@anope.org
+ * Copyright (C) 2011-2016 Anope Team <team@anope.org>
*
- * Please read COPYING and README for further details.
+ * This file is part of Anope. Anope is free software; you can
+ * redistribute it and/or modify it under the terms of the GNU
+ * General Public License as published by the Free Software
+ * Foundation, version 2.
*
- * Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see see <http://www.gnu.org/licenses/>.
*/
-#ifndef TIMERS_H
-#define TIMERS_H
+#pragma once
#include "anope.h"
@@ -95,7 +102,7 @@ class CoreExport Timer
/** Called when the timer ticks
* This should be overridden with something useful
*/
- virtual void Tick(time_t ctime) = 0;
+ virtual void Tick(time_t ctime) anope_abstract;
};
/** This class manages sets of Timers, and triggers them at their defined times.
@@ -128,4 +135,3 @@ class CoreExport TimerManager
static void DeleteTimersFor(Module *m);
};
-#endif // TIMERS_H