summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-25 20:42:02 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-25 20:42:02 +0000
commitbfd252b5174c1ebca51acb896efabbd24d670ccd (patch)
treed73305c3703fd29b29097c757736858f19325105
parent90a500ffd69fd7bd677092ae3c73b6f79d208cc5 (diff)
Send only the newly formatted users string to do_sjoin when using inspircd12, not the old one and the new one, as this implies the old users are parameters for modes, which makes mode manager unhappy
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2717 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/protocol/inspircd12.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp
index 5161fdc22..7c67d0524 100644
--- a/src/protocol/inspircd12.cpp
+++ b/src/protocol/inspircd12.cpp
@@ -581,9 +581,10 @@ endnick:
newav[0] = av[1]; /* timestamp */
newav[1] = av[0]; /* channel name */
- int i ;
+ int i;
- for (i = 2; i != ac; i++)
+ /* We want to replace the last string with our newly formatted user string */
+ for (i = 2; i != ac - 1; i++)
{
newav[i] = av[i];
}