From 0d100ffacc3c3286f42bb1f8392513bef8c572a9 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Wed, 21 Mar 2012 20:25:25 +0100 Subject: fixed ns_ajoin --- modules/commands/ns_ajoin.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp index 03b710356..2e64ebfe0 100644 --- a/modules/commands/ns_ajoin.cpp +++ b/modules/commands/ns_ajoin.cpp @@ -31,7 +31,13 @@ struct AJoinList : std::vector >, Extens sd["nc"] << this->nc->display; Anope::string channels; for (unsigned i = 0; i < this->size(); ++i) - channels += this->at(i).first + "," + this->at(i).second; + { + channels += this->at(i).first; + if (!this->at(i).second.empty()) + channels += "," + this->at(i).second; + if (i+1 < this->size()) + channels += " "; + } sd["channels"] << channels; return sd; -- cgit