- return Version(1,1,0,1,VF_COMMON|VF_VENDOR,API_VERSION);
+ std::string knocknotify = ServerInstance->Config->ConfValue("knock")->getString("notify");
+ if (stdalgo::string::equalsci(knocknotify, "numeric"))
+ {
+ cmd.sendnotice = false;
+ cmd.sendnumeric = true;
+ }
+ else if (stdalgo::string::equalsci(knocknotify, "both"))
+ {
+ cmd.sendnotice = true;
+ cmd.sendnumeric = true;
+ }
+ else
+ {
+ cmd.sendnotice = true;
+ cmd.sendnumeric = false;
+ }