diff options
author | Adam <Adam@anope.org> | 2011-03-09 12:28:24 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-09 12:28:24 -0500 |
commit | 8db5ecd7363b3f807d7ccd8e5b150a13446474f5 (patch) | |
tree | 0c18a0a6de40449c50848c28a44ecffa442fadd4 /modules/protocol/ngircd.cpp | |
parent | e9aa04a8f497bdd6675d9d3ca2d25ba6110c3008 (diff) |
Fixed sending CHANINFO on ngIRCd with two parameters if the channel has no modes locked.
Diffstat (limited to 'modules/protocol/ngircd.cpp')
-rw-r--r-- | modules/protocol/ngircd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp index d67c4272f..26babf995 100644 --- a/modules/protocol/ngircd.cpp +++ b/modules/protocol/ngircd.cpp @@ -132,7 +132,10 @@ class ngIRCdProto : public IRCDProto void SendChannel(Channel *c) { - send_cmd(Config->ServerName, "CHANINFO %s %s", c->name.c_str(), get_mlock_modes(c->ci, true).c_str()); + Anope::string mlock_modes = get_mlock_modes(c->ci, true); + if (mlock_modes.empty()) + mlock_modes = "+"; + send_cmd(Config->ServerName, "CHANINFO %s %s", c->name.c_str(), mlock_modes.c_str()); } void SendTopic(BotInfo *bi, Channel *c) { |