diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-15 20:59:05 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-15 20:59:05 +0000 |
commit | b57c7f4e466f72fdd2ac3deca42caa1ea7748338 (patch) | |
tree | 3cbfe66354be62ddd22d7614e9d6116f465e807b /src/modules/m_override.cpp | |
parent | 694e307c09334c21aaf1a6c3f0b7b6d95440dd3e (diff) |
In the grand tradition of huge fucking commits:
- chanrec -> Channel
- userrec -> User
Enjoy.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_override.cpp')
-rw-r--r-- | src/modules/m_override.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index 0f8922854..41b57b327 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -38,7 +38,7 @@ class ModuleOverride : public Module OverOps = OverDeops = OverVoices = OverDevoices = OverHalfops = OverDehalfops = 0; } - virtual void OnRehash(userrec* user, const std::string ¶meter) + virtual void OnRehash(User* user, const std::string ¶meter) { // on a rehash we delete our classes for good measure and create them again. ConfigReader* Conf = new ConfigReader(ServerInstance); @@ -61,7 +61,7 @@ class ModuleOverride : public Module List[I_OnRehash] = List[I_OnAccessCheck] = List[I_On005Numeric] = List[I_OnUserPreJoin] = List[I_OnUserPreKick] = List[I_OnPostCommand] = 1; } - virtual void OnPostCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, CmdResult result, const std::string &original_line) + virtual void OnPostCommand(const std::string &command, const char** parameters, int pcnt, User *user, CmdResult result, const std::string &original_line) { if ((NoisyOverride) && (OverriddenMode) && (irc::string(command.c_str()) == "MODE") && (result == CMD_SUCCESS)) { @@ -86,7 +86,7 @@ class ModuleOverride : public Module output.append(" OVERRIDE"); } - virtual bool CanOverride(userrec* source, const char* token) + virtual bool CanOverride(User* source, const char* token) { // checks to see if the oper's type has <type:override> override_t::iterator j = overrides.find(source->oper); @@ -101,7 +101,7 @@ class ModuleOverride : public Module return false; } - virtual int OnUserPreKick(userrec* source, userrec* user, chanrec* chan, const std::string &reason) + virtual int OnUserPreKick(User* source, User* user, Channel* chan, const std::string &reason) { if (IS_OPER(source) && CanOverride(source,"KICK")) { @@ -115,7 +115,7 @@ class ModuleOverride : public Module return 0; } - virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) + virtual int OnAccessCheck(User* source,User* dest,Channel* channel,int access_type) { if (IS_OPER(source)) { @@ -226,7 +226,7 @@ class ModuleOverride : public Module return ACR_DEFAULT; } - virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname, std::string &privs) + virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs) { if (IS_OPER(user)) { |