aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-07-16 05:55:34 +0000
committerTom Feist <shabble@metavore.org>2011-07-16 05:55:34 +0000
commit26c34ee399d3b3179c4c1c212c4e0d000bdb0016 (patch)
treef59124de47843278c425e6040a7dd22b8f3a0692
parenttrim out the caller() uglyness, since it's not actually needed for get_format(). (diff)
downloadirssi-scripts-26c34ee399d3b3179c4c1c212c4e0d000bdb0016.tar.gz
irssi-scripts-26c34ee399d3b3179c4c1c212c4e0d000bdb0016.zip
bit more cleanup on get_format_string
-rw-r--r--feature-tests/getchan.pl5
1 files changed, 1 insertions, 4 deletions
diff --git a/feature-tests/getchan.pl b/feature-tests/getchan.pl
index 92044aa..7d4ee55 100644
--- a/feature-tests/getchan.pl
+++ b/feature-tests/getchan.pl
@@ -78,10 +78,7 @@ my @errors;
my $state;
sub get_format_string {
- my ($module, $tag, $theme) = @_;
-
- $theme ||= Irssi::current_theme;
- return $theme->get_format($module, $tag);
+ return Irssi::current_theme->get_format(@_);
}