mirror of
https://github.com/znc/znc.git
synced 2026-08-09 10:23:14 +02:00
Make all the modules support networks
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "Chan.h"
|
||||
#include "User.h"
|
||||
#include "IRCNetwork.h"
|
||||
|
||||
class CAutoCycleMod : public CModule {
|
||||
public:
|
||||
@@ -125,7 +126,7 @@ protected:
|
||||
|
||||
// Is that person us and we don't have op?
|
||||
const CNick& pNick = Channel.GetNicks().begin()->second;
|
||||
if (!pNick.HasPerm(CChan::Op) && pNick.GetNick().Equals(m_pUser->GetCurNick()))
|
||||
if (!pNick.HasPerm(CChan::Op) && pNick.GetNick().Equals(m_pNetwork->GetCurNick()))
|
||||
Channel.Cycle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user