From fdc62daa8bcdf80ca176b4520b2a0f67a04b9737 Mon Sep 17 00:00:00 2001
From: Alexander Barton <alex@barton.de>
Date: Thu, 27 Dec 2012 22:15:33 +0100
Subject: [PATCH] ngircd protocol module: Fix NJOIN, actually join users to
 the channel

Bug introduced by commit d33a0f75: "Pretty large coding style cleanup,
in source doc cleanup, and allow protocol mods to depend on each other":
Since then, the NJOIN command has been "ignored", no users were added
to channels at all while linking ...
---
 modules/protocol/ngircd.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
index b5bf87b..714dcb0 100644
--- a/modules/protocol/ngircd.cpp
+++ b/modules/protocol/ngircd.cpp
@@ -489,6 +489,7 @@ struct IRCDMessageNJoin : IRCDMessage
 				Log(LOG_DEBUG) << "NJOIN for nonexistant user " << buf << " on " << params[0];
 				continue;
 			}
+			users.push_back(sju);
 		} 
 
 		Message::Join::SJoin(source, params[0], 0, "", users);
-- 
1.7.10.4

