From 7de3cb6dd1874b0c1ea852885fc53aaed64130cc Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 27 Apr 2019 19:09:43 -0700 Subject: [PATCH] Spinach: show expression used in output for rank expr --- PBot/Plugins/Spinach/Rank.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PBot/Plugins/Spinach/Rank.pm b/PBot/Plugins/Spinach/Rank.pm index d4264913..fc722388 100644 --- a/PBot/Plugins/Spinach/Rank.pm +++ b/PBot/Plugins/Spinach/Rank.pm @@ -319,7 +319,11 @@ sub rank { $result = "No rankings available for $self->{channel} yet.\n"; } } else { - $result = "Rankings for $ranks{$arguments}->{title}: "; + if ($arguments eq 'expr') { + $result = "Rankings for $opt_arg: "; + } else { + $result = "Rankings for $ranks{$arguments}->{title}: "; + } $result .= join ', ', @ranking; }