summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@action.fairlystable.org>2020-10-24 23:49:34 -0700
committerJoe Rayhawk <jrayhawk@action.fairlystable.org>2020-10-24 23:49:34 -0700
commit97c900005f549a04787516f67ecfa60890c7b550 (patch)
tree0a01470e5091b3ec77f2fe08baa949c262e7b5ff
parentbcb672d24cf67ac41ab67be0c65cf6908cef0984 (diff)
downloadtwitch-97c900005f549a04787516f67ecfa60890c7b550.tar.gz
twitch-97c900005f549a04787516f67ecfa60890c7b550.zip
Suppress password on debug output.
-rw-r--r--src/twitch/irc.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/twitch/irc.cr b/src/twitch/irc.cr
index 4e43349..1261995 100644
--- a/src/twitch/irc.cr
+++ b/src/twitch/irc.cr
@@ -87,7 +87,7 @@ class Twitch::IRC::Client
private def raw_write(command, params, prefix = nil, tags = nil)
message = FastIRC::Message.new(command, params, prefix: prefix, tags: tags)
- puts "< " + message.to_s if log_mode
+ puts "< " + message.to_s if log_mode && message.command != "PASS"
connection.send(message)
end
end