diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2012-03-21 20:25:25 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2012-03-21 20:25:25 +0100 |
commit | 0d100ffacc3c3286f42bb1f8392513bef8c572a9 (patch) | |
tree | 8457e0205b36fec5fefae5cedc500957a28e6ffb /modules/commands/ns_ajoin.cpp | |
parent | a06934777cf103dded8e12dc5c6fc52d517d498a (diff) |
fixed ns_ajoin
Diffstat (limited to 'modules/commands/ns_ajoin.cpp')
-rw-r--r-- | modules/commands/ns_ajoin.cpp | 8 |
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; |