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 From 1b0ebcadfa1003b8e2d873a572633e4d1c0286de Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Wed, 21 Mar 2012 22:20:18 +0100 Subject: fixed bug #1399 --- modules/commands/cs_seen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp index 8466cf82c..0143f50d6 100644 --- a/modules/commands/cs_seen.cpp +++ b/modules/commands/cs_seen.cpp @@ -346,7 +346,8 @@ class CSSeen : public Module void OnUserConnect(dynamic_reference &u, bool &exempt) anope_override { - UpdateUser(u, NEW, u->nick, "", "", ""); + if (u) + UpdateUser(u, NEW, u->nick, "", "", ""); } void OnUserNickChange(User *u, const Anope::string &oldnick) anope_override -- cgit