summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk+git@omgwallhack.org>2022-07-07 20:07:51 -0700
committerJoe Rayhawk <jrayhawk+git@omgwallhack.org>2022-07-07 20:07:51 -0700
commit6602c5f09bfca48d700d8530bb15aa852ddb5e25 (patch)
tree18113106c1bdc9b8e1ebf2424ec16a6eab669f4c
parent8031a23e31c65cdc75d68b5e3f28faf0071720c6 (diff)
downloadtwitchtools-6602c5f09bfca48d700d8530bb15aa852ddb5e25.tar.gz
twitchtools-6602c5f09bfca48d700d8530bb15aa852ddb5e25.zip
crystal/irc.cr: remove useless dxdiag commands on Windows
-rwxr-xr-xcrystal/irc.cr2
1 files changed, 2 insertions, 0 deletions
diff --git a/crystal/irc.cr b/crystal/irc.cr
index 2df28fa..3b592e9 100755
--- a/crystal/irc.cr
+++ b/crystal/irc.cr
@@ -817,8 +817,10 @@ loop do
effectsmsg( settings, "overlay #{match[2]}" )
else
end
+ {% if flag?(:unix) %}
elsif ( cmd =~ /^(system|dxdiag|computer)$/ )
ircipc.send( { "##{settings["channel"]}", "| https://bungmonkey.omgwallhack.org/tmp/DxDiag.txt" } )
+ {% end %}
elsif ( cmd == "hackerman" )
ircipc.send( { "##{settings["channel"]}", "| https://bungmonkey.omgwallhack.org/img/hackerman.jpg" } )
elsif ( cmd =~ /^(songrequest|sr)$/ ) && match[2]?