From b95c53765cd3bdd85a60072f3f32d4ce4ad950bc Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 13 Jun 2006 12:37:17 +0000 Subject: BUILD : 1.7.14 (1048) BUGS : 510 NOTES : Fixed a lot of redundant function declarations git-svn-id: svn://svn.anope.org/anope/trunk@1048 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@772 5417fbe8-f217-4b02-8779-1006273d7864 --- include/encrypt.h | 1 - include/extern.h | 11 +++-------- include/modules.h | 13 +++++-------- 3 files changed, 8 insertions(+), 17 deletions(-) (limited to 'include') diff --git a/include/encrypt.h b/include/encrypt.h index 462e1b373..45569b5fb 100644 --- a/include/encrypt.h +++ b/include/encrypt.h @@ -13,4 +13,3 @@ */ E int encrypt(const char *src, int len, char *dest, int size); -E int check_password(const char *plaintext, const char *password); diff --git a/include/extern.h b/include/extern.h index fefdc56bb..54a6bb974 100644 --- a/include/extern.h +++ b/include/extern.h @@ -33,6 +33,7 @@ E char *uplink; /* IRC Variables */ + E IRCDVar *ircd; E IRCDCAPAB *ircdcap; E char *flood_mode_char_set; @@ -82,10 +83,6 @@ E void bot_raw_mode(User * requester, ChannelInfo * ci, char *mode, char *nick); /**** channels.c ****/ E Channel *chanlist[1024]; -E CBMode cbmodes[128]; -E CUMode cumodes[128]; -E CMMode cmmodes[128]; -E char csmodes[128]; E void add_ban(Channel * chan, char *mask); E void chan_adduser2(User * user, Channel * c); @@ -1019,8 +1016,8 @@ E void finish_sync(Server *serv, int sync_links); E Exception *exceptions; E int16 nexceptions; -Session *sessionlist[1024]; -int32 nsessions; +E Session *sessionlist[1024]; +E int32 nsessions; E void get_session_stats(long *nrec, long *memuse); E void get_exception_stats(long *nrec, long *memuse); @@ -1295,12 +1292,10 @@ I int anope_event_netctrl(char *source, int ac, char **av); I int anope_event_notice(char *source, int ac, char **av); I int anope_event_snotice(char *source, int ac, char **av); I int anope_event_sqline(char *source, int ac, char **av); -I int anope_event_error(char *source, int ac, char **av); I int anope_event_smo(char *source, int ac, char **av); I int anope_event_myid(char *source, int ac, char **av); I int anope_event_vctrl(char *source, int ac, char **av); I int anope_event_tctrl(char *source, int ac, char **av); -I int anope_event_netinfo(char *source, int ac, char **av); I int anope_event_snetinfo(char *source, int ac, char **av); I int anope_event_umode2(char *source, int ac, char **av); I int anope_event_globops(char *source, int ac, char **av); diff --git a/include/modules.h b/include/modules.h index 91910ea40..49d7a8dbd 100644 --- a/include/modules.h +++ b/include/modules.h @@ -299,11 +299,11 @@ MDE int moduleAddOperHelp(Command * c, int (*func) (User * u)); MDE int moduleAddAdminHelp(Command * c, int (*func) (User * u)); MDE int moduleAddRootHelp(Command * c, int (*func) (User * u)); MDE void moduleSetType(MODType type); -MDE Module *mod_current_module; -MDE char *mod_current_module_name; -MDE char *mod_current_buffer; -MDE int mod_current_op; -MDE User *mod_current_user; +extern MDE Module *mod_current_module; +extern MDE char *mod_current_module_name; +extern MDE char *mod_current_buffer; +extern MDE int mod_current_op; +extern MDE User *mod_current_user; MDE int moduleGetConfigDirective(Directive *h); /*************************************************************************/ @@ -329,7 +329,6 @@ MDE int moduleAddMessage(Message *m, int pos); int delMessage(MessageHash *msgTable[], Message *m, char *mod_name); /* Del a Message from a msg table */ MDE int moduleDelMessage(char *name); int destroyMessage(Message *m); /* destroy a Message*/ -Message *findMessage(MessageHash *msgTable[], const char *name); /*************************************************************************/ @@ -360,13 +359,11 @@ MDE void moduleDeleteLanguage(int langNumber); MDE int moduleAddCallback(char *name,time_t when,int (*func)(int argc, char *argv[]),int argc, char **argv); MDE void moduleDelCallback(char *name); -MDE void moduleCallBackRun(void); MDE char *moduleGetData(ModuleData **md, char *key); /* Get the value for this key from this struct */ MDE int moduleAddData(ModuleData **md, char *key, char *value); /* Set the value for this key for this struct */ MDE void moduleDelData(ModuleData **md, char *key); /* Delete this key/value pair */ MDE void moduleDelAllData(ModuleData **md); /* Delete all key/value pairs for this module for this struct */ -MDE void moduleCleanStruct(ModuleData **moduleData); /* Clean a moduleData hash */ void moduleDelAllDataMod(Module *m); /* remove all module data from all structs for this module */ int moduleDataDebug(ModuleData **md); /* Allow for debug output of a moduleData struct */ MDE boolean moduleMinVersion(int major,int minor,int patch,int build); /* Checks if the current version of anope is before or after a given verison */ -- cgit