mirror of
https://github.com/znc/znc.git
synced 2026-08-06 00:43:19 +02:00
@@ -124,7 +124,7 @@ public:
|
||||
AddCommand("DelUser", static_cast<CModCommand::ModCmdFunc>(&CAutoVoiceMod::OnDelUserCommand), "<user>", "Removes a user");
|
||||
}
|
||||
|
||||
virtual bool OnLoad(const CString& sArgs, CString& sMessage) {
|
||||
virtual bool OnLoad(const CString& sArgs, CString& sMessage) override {
|
||||
// Load the chans from the command line
|
||||
unsigned int a = 0;
|
||||
VCString vsChans;
|
||||
@@ -159,7 +159,7 @@ public:
|
||||
m_msUsers.clear();
|
||||
}
|
||||
|
||||
virtual void OnJoin(const CNick& Nick, CChan& Channel) {
|
||||
virtual void OnJoin(const CNick& Nick, CChan& Channel) override {
|
||||
// If we have ops in this chan
|
||||
if (Channel.HasPerm(CChan::Op) || Channel.HasPerm(CChan::HalfOp)) {
|
||||
for (map<CString, CAutoVoiceUser*>::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) {
|
||||
|
||||
Reference in New Issue
Block a user