diff options
| author | DukePyrolator <DukePyrolator@anope.org> | 2013-05-12 11:09:34 +0200 |
|---|---|---|
| committer | DukePyrolator <DukePyrolator@anope.org> | 2013-05-12 11:09:34 +0200 |
| commit | 4237d49d41caca771b9d82439b4ce145f151b504 (patch) | |
| tree | 00168b476b2f81a7dc38649a356cc7c69eda431e /modules/protocol | |
| parent | 1c36de5ab150d43b9caf377a409d71f857288509 (diff) | |
improved handling of mlocks and topiclocks on inspircd
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/inspircd20.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 443910329..993c43b7a 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -821,7 +821,7 @@ class ProtoInspIRCd : public Module void OnChanRegistered(ChannelInfo *ci) anope_override { - if (use_server_side_mlock && ci->c) + if (use_server_side_mlock && ci->c && !ci->GetMLockAsString(false).empty()) { Anope::string modes = ci->GetMLockAsString(false).replace_all_cs("+", "").replace_all_cs("-", ""); SendChannelMetadata(ci->c, "mlock", modes); @@ -829,8 +829,8 @@ class ProtoInspIRCd : public Module if (use_server_side_topiclock && Servers::Capab.count("TOPICLOCK") && ci->c) { - Anope::string on = ci->HasExt("TOPICLOCK") ? "1" : ""; - SendChannelMetadata(ci->c, "topiclock", on); + if (ci->HasExt("TOPICLOCK")) + SendChannelMetadata(ci->c, "topiclock", "1"); } } |
