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_silence.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_silence.cpp')
-rw-r--r-- | src/modules/m_silence.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 1bea10b70..240752099 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -32,7 +32,7 @@ class cmd_silence : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, userrec *user) + CmdResult Handle (const char** parameters, int pcnt, User *user) { if (!pcnt) { @@ -142,7 +142,7 @@ class ModuleSilence : public Module List[I_OnRehash] = List[I_OnUserQuit] = List[I_On005Numeric] = List[I_OnUserPreNotice] = List[I_OnUserPreMessage] = 1; } - virtual void OnRehash(userrec* user, const std::string ¶meter) + virtual void OnRehash(User* user, const std::string ¶meter) { ConfigReader Conf(ServerInstance); maxsilence = Conf.ReadInteger("silence", "maxentries", 0, true); @@ -150,7 +150,7 @@ class ModuleSilence : public Module maxsilence = 32; } - virtual void OnUserQuit(userrec* user, const std::string &reason, const std::string &oper_message) + virtual void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message) { // when the user quits tidy up any silence list they might have just to keep things tidy // and to prevent a HONKING BIG MEMORY LEAK! @@ -169,7 +169,7 @@ class ModuleSilence : public Module output = output + " SILENCE=" + ConvToStr(maxsilence); } - virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list) + virtual int OnUserPreNotice(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list) { // im not sure how unreal's silence operates but ours is sensible. It blocks notices and // privmsgs from people on the silence list, directed privately at the user. @@ -177,7 +177,7 @@ class ModuleSilence : public Module // a channel when you've set an ignore on the two most talkative people?) if ((target_type == TYPE_USER) && (IS_LOCAL(user))) { - userrec* u = (userrec*)dest; + User* u = (User*)dest; silencelist* sl; u->GetExt("silence_list", sl); if (sl) @@ -194,7 +194,7 @@ class ModuleSilence : public Module return 0; } - virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list) + virtual int OnUserPreMessage(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list) { return OnUserPreNotice(user,dest,target_type,text,status,exempt_list); } |