mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 16:28:28 +00:00
Cleanup expedition perl api croak messages
This commit is contained in:
+6
-12
@@ -6125,8 +6125,7 @@ XS(XS__get_expedition_lockout_by_char_id);
|
||||
XS(XS__get_expedition_lockout_by_char_id) {
|
||||
dXSARGS;
|
||||
if (items != 3) {
|
||||
Perl_croak(aTHX_ "Usage: quest::get_expedition_lockout_by_char_id"
|
||||
"(uint32 character_id, string expedition_name, string event_name)");
|
||||
Perl_croak(aTHX_ "Usage: quest::get_expedition_lockout_by_char_id(uint32 character_id, string expedition_name, string event_name)");
|
||||
}
|
||||
|
||||
uint32_t character_id = static_cast<uint32_t>(SvUV(ST(0)));
|
||||
@@ -6155,8 +6154,7 @@ XS(XS__get_expedition_lockouts_by_char_id);
|
||||
XS(XS__get_expedition_lockouts_by_char_id) {
|
||||
dXSARGS;
|
||||
if (items != 1 && items != 2) {
|
||||
Perl_croak(aTHX_ "Usage: quest::get_expedition_lockouts_by_char_id"
|
||||
"(uint32 character_id [, string expedition_name])");
|
||||
Perl_croak(aTHX_ "Usage: quest::get_expedition_lockouts_by_char_id(uint32 character_id, [string expedition_name])");
|
||||
}
|
||||
|
||||
HV* hash = newHV(); // hash refcnt +1 (non-mortal, newRV_noinc to not inc)
|
||||
@@ -6225,8 +6223,7 @@ XS(XS__add_expedition_lockout_all_clients);
|
||||
XS(XS__add_expedition_lockout_all_clients) {
|
||||
dXSARGS;
|
||||
if (items != 3 && items != 4) {
|
||||
Perl_croak(aTHX_ "Usage: quest::add_expedition_lockout_all_clients"
|
||||
"(string expedition_name, string event_name, uint32 seconds [, string uuid])");
|
||||
Perl_croak(aTHX_ "Usage: quest::add_expedition_lockout_all_clients(string expedition_name, string event_name, uint32 seconds, [string uuid])");
|
||||
}
|
||||
|
||||
std::string expedition_name = SvPV_nolen(ST(0));
|
||||
@@ -6249,8 +6246,7 @@ XS(XS__add_expedition_lockout_by_char_id);
|
||||
XS(XS__add_expedition_lockout_by_char_id) {
|
||||
dXSARGS;
|
||||
if (items != 4 && items != 5) {
|
||||
Perl_croak(aTHX_ "Usage: quest::add_expedition_lockout_by_char_id"
|
||||
"(uint32 character_id, string expedition_name, string event_name, uint32 seconds [, string uuid])");
|
||||
Perl_croak(aTHX_ "Usage: quest::add_expedition_lockout_by_char_id(uint32 character_id, string expedition_name, string event_name, uint32 seconds, [string uuid])");
|
||||
}
|
||||
|
||||
std::string uuid;
|
||||
@@ -6273,8 +6269,7 @@ XS(XS__remove_expedition_lockout_by_char_id);
|
||||
XS(XS__remove_expedition_lockout_by_char_id) {
|
||||
dXSARGS;
|
||||
if (items != 3) {
|
||||
Perl_croak(aTHX_ "Usage: quest::remove_expedition_lockout_by_char_id"
|
||||
"(uint32 character_id, string expedition_name, string event_name)");
|
||||
Perl_croak(aTHX_ "Usage: quest::remove_expedition_lockout_by_char_id(uint32 character_id, string expedition_name, string event_name)");
|
||||
}
|
||||
|
||||
uint32_t character_id = static_cast<uint32_t>(SvUV(ST(0)));
|
||||
@@ -6290,8 +6285,7 @@ XS(XS__remove_all_expedition_lockouts_by_char_id);
|
||||
XS(XS__remove_all_expedition_lockouts_by_char_id) {
|
||||
dXSARGS;
|
||||
if (items != 1 && items != 2) {
|
||||
Perl_croak(aTHX_ "Usage: quest::remove_expedition_lockout_by_char_id"
|
||||
"(uint32 character_id [, string expedition_name])");
|
||||
Perl_croak(aTHX_ "Usage: quest::remove_expedition_lockout_by_char_id(uint32 character_id, [string expedition_name])");
|
||||
}
|
||||
|
||||
std::string expedition_name;
|
||||
|
||||
Reference in New Issue
Block a user