+ /* Ambiguous command, list the matches */
+ if (!matchlist.empty())
+ {
+ user->WriteNumeric(ERR_AMBIGUOUSCOMMAND, InspIRCd::Format("Ambiguous abbreviation, possible matches: %s%s", foundcommand.c_str(), matchlist.c_str()));
+ return MOD_RES_DENY;
+ }
+
+ if (!foundcommand.empty())
+ {
+ command = foundcommand;
+ }
+
+ return MOD_RES_PASSTHRU;