diff options
author | Sadie Powell <sadie@witchery.services> | 2024-06-23 14:36:03 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-06-23 14:36:03 +0100 |
commit | b94c3740b967f844c5a51b51c902d1aca822497b (patch) | |
tree | 4266acdebae9d2ed9ea89a645a44e9869fd29546 /modules | |
parent | 59ec42f0e6a49a3a4a2386a392cdfec5906af912 (diff) |
Make the language around fantasy commands less weird.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/database/db_old.cpp | 2 | ||||
-rw-r--r-- | modules/fantasy.cpp | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp index 981d4c04e..68ba2ca07 100644 --- a/modules/database/db_old.cpp +++ b/modules/database/db_old.cpp @@ -252,7 +252,7 @@ static Anope::string GetLevelName(int level) case 15: return "NOKICK"; case 16: - return "FANTASIA"; + return "FANTASY"; case 17: return "SAY"; case 18: diff --git a/modules/fantasy.cpp b/modules/fantasy.cpp index 26c9080a6..0b3e642aa 100644 --- a/modules/fantasy.cpp +++ b/modules/fantasy.cpp @@ -17,7 +17,7 @@ class CommandBSSetFantasy final public: CommandBSSetFantasy(Module *creator, const Anope::string &sname = "botserv/set/fantasy") : Command(creator, sname, 2, 2) { - this->SetDesc(_("Enable fantaisist commands")); + this->SetDesc(_("Enable fantasy commands")); this->SetSyntax(_("\037channel\037 {\037ON|OFF\037}")); } @@ -73,9 +73,9 @@ public: "fantasy commands on a channel when prefixed\n" "with one of the following fantasy characters: \002%s\002\n" " \n" - "Note that users wanting to use fantaisist\n" - "commands MUST have enough access for both\n" - "the FANTASIA and the command they are executing."), + "Note that users wanting to use fantasy commands\n" + "MUST have enough access for both the FANTASY\n" + "privilege and the command they are executing."), Config->GetModule(this->owner)->Get<const Anope::string>("fantasycharacter", "!").c_str()); return true; } @@ -186,10 +186,10 @@ public: source.permission = info.permission; AccessGroup ag = c->ci->AccessFor(u); - bool has_fantasia = ag.HasPriv("FANTASIA") || source.HasPriv("botserv/fantasy"); + bool has_fantasy = ag.HasPriv("FANTASY") || source.HasPriv("botserv/fantasy"); EventReturn MOD_RESULT; - if (has_fantasia) + if (has_fantasy) { FOREACH_RESULT(OnBotFantasy, MOD_RESULT, (source, cmd, c->ci, params)); } @@ -198,7 +198,7 @@ public: FOREACH_RESULT(OnBotNoFantasyAccess, MOD_RESULT, (source, cmd, c->ci, params)); } - if (MOD_RESULT == EVENT_STOP || !has_fantasia) + if (MOD_RESULT == EVENT_STOP || !has_fantasy) return; if (MOD_RESULT != EVENT_ALLOW && !info.permission.empty() && !source.HasCommand(info.permission)) |