diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-06-03 20:44:01 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-06-03 20:44:01 +0000 |
commit | ca25d6e252a652714957eff7bfd672fedad652e4 (patch) | |
tree | 19fbaa26f130f67ba83f7e6feb3a6979f0b63f93 /src/protocol/inspircd.c | |
parent | e0cba0bb71611f82434b7f061760d105423bbe09 (diff) |
BUILD : 1.7.10 (824) BUGS : 389 NOTES : Added the possibility for protocol files to override the code setting mod_current_buffer, which is needed for InspIRCd
git-svn-id: svn://svn.anope.org/anope/trunk@824 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@577 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd.c')
-rw-r--r-- | src/protocol/inspircd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/protocol/inspircd.c b/src/protocol/inspircd.c index 7053ae8fd..592eefddf 100644 --- a/src/protocol/inspircd.c +++ b/src/protocol/inspircd.c @@ -421,6 +421,15 @@ void inspircd_set_umode(User * user, int ac, char **av) } } +/* Set mod_current_buffer from here */ +void inspircd_set_mod_current_buffer(int ac, char **av) +{ + if (ac >= 3) + mod_current_buffer = sstrdup(av[2]); + else + mod_current_buffer = NULL; +} + int anope_event_nickchange(char *source, int ac, char **av); int anope_event_servertopic(char *source, int ac, char **av); int anope_event_servermode(char *source, int ac, char **av); @@ -1424,6 +1433,7 @@ void inspircd_cmd_ctcp(char *source, char *dest, char *buf) * These prototypes must match what anope expects. **/ void moduleAddAnopeCmds() { + pmodule_set_mod_current_buffer(inspircd_set_mod_current_buffer); pmodule_cmd_svsnoop(inspircd_cmd_svsnoop); pmodule_cmd_remove_akill(inspircd_cmd_remove_akill); pmodule_cmd_topic(inspircd_cmd_topic); |