1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 14:43:14 +02:00

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
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-06-03 20:44:01 +00:00
parent e0cba0bb71
commit ca25d6e252
7 changed files with 45 additions and 8 deletions
+10 -7
View File
@@ -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);