Skip to content

Commit

Permalink
stripping away access_token when posting message, addressing #92
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Jun 23, 2015
1 parent ead0a0c commit 5782e83
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ class StackExchangeChatBot {
private void postMessageToChat(final ChatMessage message) throws ChatThrottleException, ProbablyNotLoggedInException {
Objects.requireNonNull(message, "message");
Map<String, String> parameters = new HashMap<>();
parameters.put("text", message.getMessage());
String text = message.getMessage()
text = text.replaceAll('access_token=([0-9a-f]+)', 'access_token=xxxxxxxxxxxxxx')
parameters.put("text", text);
parameters.put("fkey", this.chatFKey);
println 'Okay, here we go!'
try {
Expand Down

0 comments on commit 5782e83

Please sign in to comment.