feat(Scripts/Commands): account set email (#19481)

* added worldserver command to set email address

* reverted sql, added Tail args

* removed pointer

* Added helper text via updatescript

* fix build

* fix build

* fixed db update

* Update data/sql/updates/db_world/2024_07_26_01.sql

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update data/sql/updates/db_world/2024_07_26_01.sql

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* fixed hander

* refactor with named params

* refactor with named params

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
Justin Hanley
2024-07-30 07:33:13 -06:00
committed by GitHub
parent fccfe51594
commit af6b8ce099
6 changed files with 90 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
-- DB update 22024_07_26_00 -> 2024_07_26_01
DELETE FROM `command` WHERE `name`='account set email';
INSERT INTO `command` (`name`, `security`, `help`) VALUES
('account set email', 4, 'Syntax: .account set email $account $email $email_confirmation\nAdd or change an email to the account.');
DELETE FROM `acore_string` WHERE `entry` IN (875);
INSERT INTO `acore_string` (`entry`, `content_default`,`locale_zhCN`) VALUES
(875, 'Your email can\'t be longer than 255 characters, email not changed!', '255');