summaryrefslogtreecommitdiff
path: root/modules/commands/ns_ajoin.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2012-03-21 20:25:25 +0100
committerDukePyrolator <DukePyrolator@anope.org>2012-03-21 20:25:25 +0100
commit0d100ffacc3c3286f42bb1f8392513bef8c572a9 (patch)
tree8457e0205b36fec5fefae5cedc500957a28e6ffb /modules/commands/ns_ajoin.cpp
parenta06934777cf103dded8e12dc5c6fc52d517d498a (diff)
fixed ns_ajoin
Diffstat (limited to 'modules/commands/ns_ajoin.cpp')
-rw-r--r--modules/commands/ns_ajoin.cpp8
1 files changed, 7 insertions, 1 deletions
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<std::pair<Anope::string, Anope::string> >, 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;