mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Switch to the IRCv3 standard-replies cap.
Nothing is using this so far so I'm not counting it as a breaking change.
This commit is contained in:
parent
68c2629ec1
commit
297212ca4d
@ -1225,7 +1225,10 @@
|
||||
# The following block can be used to control which extensions are
|
||||
# enabled. Note that extended-join can be incompatible with delayjoin
|
||||
# and host cycling.
|
||||
#<ircv3 accountnotify="yes" awaynotify="yes" extendedjoin="yes">
|
||||
#<ircv3 accountnotify="yes"
|
||||
# awaynotify="yes"
|
||||
# extendedjoin="yes"
|
||||
# standardreplies="yes">
|
||||
|
||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||
# IRCv3 account-tag module. Adds the 'account' tag which contains the
|
||||
|
@ -33,13 +33,13 @@ namespace IRCv3
|
||||
}
|
||||
}
|
||||
|
||||
/** Reference to the inspircd.org/standard-replies cap. */
|
||||
/** Reference to the standard-replies cap. */
|
||||
class IRCv3::Replies::CapReference
|
||||
: public Cap::Reference
|
||||
{
|
||||
public:
|
||||
CapReference(Module* mod)
|
||||
: Cap::Reference(mod, "inspircd.org/standard-replies")
|
||||
: Cap::Reference(mod, "standard-replies")
|
||||
{
|
||||
}
|
||||
};
|
||||
|
@ -490,13 +490,11 @@ class ModuleCap : public Module
|
||||
private:
|
||||
CommandCap cmd;
|
||||
PoisonCap poisoncap;
|
||||
Cap::Capability stdrplcap;
|
||||
|
||||
public:
|
||||
ModuleCap()
|
||||
: cmd(this)
|
||||
, poisoncap(this)
|
||||
, stdrplcap(this, "inspircd.org/standard-replies")
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -123,6 +123,7 @@ class ModuleIRCv3
|
||||
|
||||
ClientProtocol::EventProvider accountprotoev;
|
||||
Monitor::API monitorapi;
|
||||
Cap::Capability stdrplcap;
|
||||
|
||||
public:
|
||||
ModuleIRCv3()
|
||||
@ -132,6 +133,7 @@ class ModuleIRCv3
|
||||
, joinhook(this)
|
||||
, accountprotoev(this, "ACCOUNT")
|
||||
, monitorapi(this)
|
||||
, stdrplcap(this, "standard-replies")
|
||||
{
|
||||
}
|
||||
|
||||
@ -141,6 +143,7 @@ class ModuleIRCv3
|
||||
cap_accountnotify.SetActive(conf->getBool("accountnotify", true));
|
||||
joinhook.awaycap.SetActive(conf->getBool("awaynotify", true));
|
||||
joinhook.extendedjoincap.SetActive(conf->getBool("extendedjoin", true));
|
||||
stdrplcap.SetActive(conf->getBool("standardreplies", true));
|
||||
}
|
||||
|
||||
void OnAccountChange(User* user, const std::string& newaccount) CXX11_OVERRIDE
|
||||
|
Loading…
x
Reference in New Issue
Block a user