summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-06 19:20:48 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-06 19:20:48 +0000
commit6946412b758e48367e3a8c636f3204f83446041d (patch)
tree2946aaeec811fb000f5fe265b50f46dd336d530d
parentb9aeca470819133ff45ff978c066897b2b60c4cc (diff)
Remove unused mod_current_evtbuf.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1561 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--include/modules.h1
-rw-r--r--src/events.c6
2 files changed, 1 insertions, 6 deletions
diff --git a/include/modules.h b/include/modules.h
index 4f984f78e..c85e37d21 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -353,7 +353,6 @@ MDE int moduleAddEventHook(EvtHook * evh);
MDE int moduleEventDelHook(const char *name);
int delEventHook(EvtHookHash * HookEvtTable[], EvtHook * evh, char *mod_name);
int destroyEventHook(EvtHook * evh);
-extern char *mod_current_evtbuffer;
MDE void moduleInsertLanguage(int langNumber, int ac, const char **av);
MDE void moduleNoticeLang(char *source, User *u, int number, ...);
diff --git a/src/events.c b/src/events.c
index 04229a0d4..e7f9b7bce 100644
--- a/src/events.c
+++ b/src/events.c
@@ -15,8 +15,6 @@
#include "language.h"
#include "version.h"
-char *mod_current_evtbuffer = NULL;
-
EvtMessageHash *EVENT[MAX_CMD_HASH];
EvtHookHash *EVENTHOOKS[MAX_CMD_HASH];
@@ -151,9 +149,7 @@ void event_process_hook(const char *name, int argc, char **argv)
int retVal = 0;
EvtHook *current = NULL;
EvtHook *evh;
- if (mod_current_evtbuffer) {
- free(mod_current_evtbuffer);
- }
+
/* Do something with the message. */
evh = find_eventhook(name);
if (evh) {