From 6602c5f09bfca48d700d8530bb15aa852ddb5e25 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Thu, 7 Jul 2022 20:07:51 -0700 Subject: crystal/irc.cr: remove useless dxdiag commands on Windows --- crystal/irc.cr | 2 ++ 1 file changed, 2 insertions(+) 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]? -- cgit v1.2.3