diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-03-07 21:18:06 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-03-07 21:18:06 +0000 |
| commit | bb94f286f5ffdc86240cadbe713ede22966d6a18 (patch) | |
| tree | f11c16d590d00194a76e90fb4f80c694cf580594 /modules/chanserv | |
| parent | 86e3556438942d8cf5b98264e0533e10c873d7af (diff) | |
Also use drop confirmation codes for nicknames.
Diffstat (limited to 'modules/chanserv')
| -rw-r--r-- | modules/chanserv/cs_drop.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/chanserv/cs_drop.cpp b/modules/chanserv/cs_drop.cpp index eada1c23b..cfeeddbdb 100644 --- a/modules/chanserv/cs_drop.cpp +++ b/modules/chanserv/cs_drop.cpp @@ -20,7 +20,7 @@ private: public: CommandCSDrop(Module *creator) : Command(creator, "chanserv/drop", 1, 2) - , dropcode(creator, "dropcode") + , dropcode(creator, "channel-dropcode") { this->SetDesc(_("Cancel the registration of a channel")); this->SetSyntax(_("\037channel\037 [\037code\037]")); @@ -54,12 +54,11 @@ public: { if (!code) { - code = ci->Extend<Anope::string>("dropcode"); + code = ci->Extend<Anope::string>("channel-dropcode"); *code = Anope::Random(15); } - source.Reply(_("Please confirm that you want to drop \002%s\002 with \002DROP %s %s\002"), - chan.c_str(), chan.c_str(), code->c_str()); + source.Reply(CONFIRM_DROP, ci->name.c_str(), ci->name.c_str(), code->c_str()); return; } |
