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/process.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/process.c')
-rw-r--r-- | src/process.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c index 1fa7354b2..5f5f27a50 100644 --- a/src/process.c +++ b/src/process.c @@ -248,18 +248,21 @@ void process() to the NICK and thus AV[0] is the message. The new logic is to check av[0] to see if its a service nick if so assign mod_current_buffer the value from AV[1] else just assign av[0] - TSL */ - if (av[0]) { - if (nickIsServices(av[0], 1)) { - if (av[1]) { - mod_current_buffer = sstrdup(av[1]); + /* First check if the ircd proto module overrides this -GD */ + if (!anope_set_mod_current_buffer(ac, av)) { + if (av[0]) { + if (nickIsServices(av[0], 1)) { + if (av[1]) { + mod_current_buffer = sstrdup(av[1]); + } else { + mod_current_buffer = sstrdup(av[0]); + } } else { mod_current_buffer = sstrdup(av[0]); } } else { - mod_current_buffer = sstrdup(av[0]); + mod_current_buffer = NULL; } - } else { - mod_current_buffer = NULL; } /* Do something with the message. */ m = find_message(cmd); |