diff options
| author | 2026-06-24 19:56:30 +0100 | |
|---|---|---|
| committer | 2026-06-24 21:55:33 +0100 | |
| commit | 2240f1669a5214e932cccd96cbd30598cf302f17 (patch) | |
| tree | 9a7b9bb69ec6a2df33d7814935800c1d191a6507 /modules/spanningtree/capab.cpp | |
| parent | Use a more human-understandable error message for extban mismatches. (diff) | |
Check link data that always has to match first.
Diffstat (limited to 'modules/spanningtree/capab.cpp')
| -rw-r--r-- | modules/spanningtree/capab.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/spanningtree/capab.cpp b/modules/spanningtree/capab.cpp index 430b4dc48..21e61fda5 100644 --- a/modules/spanningtree/capab.cpp +++ b/modules/spanningtree/capab.cpp @@ -801,18 +801,18 @@ bool TreeSocket::Capab(const CommandBase::Params& params) if (!CompareModules(VF_COMMON, this->capab->requiredmodules, diff)) return HandleMismatchFatal(this, "Required modules", diff); - else if (!CompareModules(VF_OPTCOMMON, this->capab->optionalmodules, diff)) - { - if (!HandleMismatch(this, "Optional modules", diff)) - return false; - } - else if (!CompareModes(MODETYPE_CHANNEL, this->capab->channelmodes, this->proto_version, diff)) return HandleMismatchFatal(this, "Channel modes", diff); else if (!CompareModes(MODETYPE_USER, this->capab->usermodes, this->proto_version, diff)) return HandleMismatchFatal(this, "User modes", diff); + else if (!CompareModules(VF_OPTCOMMON, this->capab->optionalmodules, diff)) + { + if (!HandleMismatch(this, "Optional modules", diff)) + return false; + } + else if (!CompareCapabilities(this->capab->capabilities, this, diff)) { if (!HandleMismatch(this, "Capabilities", diff)) |
