diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:49:24 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:49:24 +0000 |
commit | 3d8ec5dbd9cfde34fcbc63ad7b9b1369866f0a33 (patch) | |
tree | a27087e7a9bfab5c9ed54a0bb5b8260b6bed0868 /src/modules/m_operprefix.cpp | |
parent | 347dcb9ef44e19e2e2613ee7e8c7d5fbb0aca4ca (diff) |
Remove "servermode" parameter, replace with IS_FAKE() which is more reliable
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11633 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_operprefix.cpp')
-rw-r--r-- | src/modules/m_operprefix.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index d416d5699..deb826108 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -58,9 +58,9 @@ class OperPrefixMode : public ModeHandler return OPERPREFIX_VALUE; } - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode) + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding) { - if (servermode || (source && ServerInstance->ULine(source->server))) + if (IS_FAKE(source) || (source && ServerInstance->ULine(source->server))) return MODEACTION_ALLOW; else { @@ -151,10 +151,10 @@ class ModuleOperPrefixMode : public Module } // XXX: is there a better way to do this? - virtual int OnRawMode(User* user, Channel* chan, const char mode, const std::string ¶m, bool adding, int pcnt, bool servermode) + virtual int OnRawMode(User* user, Channel* chan, const char mode, const std::string ¶m, bool adding, int pcnt) { /* force event propagation to its ModeHandler */ - if (!servermode && chan && (mode == 'y')) + if (!IS_FAKE(user) && chan && (mode == 'y')) return ACR_ALLOW; return 0; } |