Skip to content

Commit

Permalink
Merge pull request #3210 from GremlingSS/Planetopics
Browse files Browse the repository at this point in the history
WOOPS [Andy's whitelisting topic handler]
  • Loading branch information
DameonOwen authored Sep 29, 2023
2 parents b0ed5e9 + acd1243 commit 30917c2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions code/datums/world_topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,16 @@
return json_encode(data)

// Border Control Wrapper for removing/adding whitelists - Gremling da smoothbrain
// -----------------------------------------------------------
// THE FORMATTING
// -----------------------------------------------------------
// Keyword - "border" // The method to call this wrapper
// Mode Choice - "mode" // 0 - 1 - 2, 0: Check whitelist
// 1: Whitelist,
// 2: Unwhitelist.
// CKey - "ckey" // The target user.
// -----------------------------------------------------------
// Mode Choice - "mode" // 0 - 1 - 2, 0: Check whitelist
// 1: Whitelist,
// 2: Unwhitelist.
// -----------------------------------------------------------
// CKey - "ckey" // The target user.

#define CHK_WHTLST 0
#define WHTLST 1
Expand Down Expand Up @@ -348,7 +353,7 @@
else
return "[ckey] is already not on the whitelist."

return "Formatting error - KEY: [input["key"]] | MODE: [input["mode"]] | CKEY: [input["ckey"]] | WhitelistResult: [whitelistResult]"
return "Formatting error - KEY: [input["keyword"]] | MODE: [input["mode"]] | CKEY: [input["ckey"]] | WhitelistResult: [whitelistResult]"

#undef CHK_WHTLST
#undef WHTLST
Expand Down

0 comments on commit 30917c2

Please sign in to comment.