Skip to content

Commit

Permalink
Update modules for the latest v4 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
SadieCat committed Jun 7, 2024
1 parent fc774c6 commit 7f09d3c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 4/m_antisnoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ModuleAntiSnoop final
exemptrank = tag->getNum<ModeHandler::Rank>("exemptrank", VOICE_VALUE);
}

ModResult OnUserPreMessage(User* user, const MessageTarget& target, MessageDetails& details) override
ModResult OnUserPreMessage(User* user, MessageTarget& target, MessageDetails& details) override
{
if (target.type != MessageTarget::TYPE_CHANNEL)
return MOD_RES_PASSTHRU; // We only care about channel messages.
Expand Down
2 changes: 1 addition & 1 deletion 4/m_blockhighlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ModuleBlockHighlight final
stripcolor = tag->getBool("stripcolor", true);
}

ModResult OnUserPreMessage(User* user, const MessageTarget& target, MessageDetails& details) override
ModResult OnUserPreMessage(User* user, MessageTarget& target, MessageDetails& details) override
{
if ((target.type != MessageTarget::TYPE_CHANNEL) || (!IS_LOCAL(user)))
return MOD_RES_PASSTHRU;
Expand Down
2 changes: 1 addition & 1 deletion 4/m_censor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ModuleCensor : public Module
}

// format of a config entry is <badword text="shit" replace="poo">
ModResult OnUserPreMessage(User* user, const MessageTarget& target, MessageDetails& details) override
ModResult OnUserPreMessage(User* user, MessageTarget& target, MessageDetails& details) override
{
if (!IS_LOCAL(user))
return MOD_RES_PASSTHRU;
Expand Down
4 changes: 2 additions & 2 deletions 4/m_customtags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@ class ModuleCustomTags final
return MOD_RES_PASSTHRU;
}

ModResult OnUserPreMessage(User* user, const MessageTarget& target, MessageDetails& details) override
ModResult OnUserPreMessage(User* user, MessageTarget& target, MessageDetails& details) override
{
return AddCustomTags(user, details.tags_out);
}

ModResult OnUserPreTagMessage(User* user, const MessageTarget& target, CTCTags::TagMessageDetails& details) override
ModResult OnUserPreTagMessage(User* user, MessageTarget& target, CTCTags::TagMessageDetails& details) override
{
return AddCustomTags(user, details.tags_out);
}
Expand Down
2 changes: 1 addition & 1 deletion 4/m_messagelength.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ModuleMessageLength final
{
}

ModResult OnUserPreMessage(User* user, const MessageTarget& target, MessageDetails& details) override
ModResult OnUserPreMessage(User* user, MessageTarget& target, MessageDetails& details) override
{
if (target.type != MessageTarget::TYPE_CHANNEL)
return MOD_RES_PASSTHRU;
Expand Down
2 changes: 1 addition & 1 deletion 4/m_noidletyping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ModuleNoIdleTyping final
duration = tag->getDuration("duration", 60*10, 60);
}

ModResult OnUserPreTagMessage(User* user, const MessageTarget& target, CTCTags::TagMessageDetails& details) override
ModResult OnUserPreTagMessage(User* user, MessageTarget& target, CTCTags::TagMessageDetails& details) override
{
auto iter = details.tags_out.find("+typing");
auto draftiter = details.tags_out.find("+draft/typing");
Expand Down
2 changes: 1 addition & 1 deletion 4/m_solvemsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class ModuleSolveMessage final
ext.Set(user, problem);
}

ModResult OnUserPreMessage(User* user, const MessageTarget& msgtarget, MessageDetails& details) override
ModResult OnUserPreMessage(User* user, MessageTarget& msgtarget, MessageDetails& details) override
{
LocalUser* source = IS_LOCAL(user);
if (!source)
Expand Down

0 comments on commit 7f09d3c

Please sign in to comment.