X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=lib%2FOnis%2FPlugins%2FCore.pm;h=3f01666c12310f35480cb3690b7303e1adcd1123;hb=f980a0f03f3f7727a602b94251f8d6d1e3a15178;hp=b8e357188d02cb0cb5adda9aa706b27b4af63b03;hpb=25ac30d7c99c5c51ec69ebc5c7d3c9ef99e49a01;p=onis.git diff --git a/lib/Onis/Plugins/Core.pm b/lib/Onis/Plugins/Core.pm index b8e3571..3f01666 100644 --- a/lib/Onis/Plugins/Core.pm +++ b/lib/Onis/Plugins/Core.pm @@ -44,7 +44,7 @@ our $NickCharsCounter = Onis::Data::Persistent->new ('NickCharsCounter', 'nick', our $QuoteCache = {}; # Saves per-nick information without any modification our $QuoteData = {}; # Is generated before output. Nicks are merged according to Data::Core. -our $NickData = {}: # Same as above, but for nicks rather than quotes. +our $NickData = {}; # Same as above, but for nicks rather than quotes. our @H_IMAGES = qw#dark-theme/h-red.png dark-theme/h-blue.png dark-theme/h-yellow.png dark-theme/h-green.png#; our $QuoteCacheSize = 10; @@ -273,7 +273,7 @@ sub add { @counter = qw(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0); } - $counter[$hour]++ + $counter[$hour]++; $NickLinesCounter->put ($nick, @counter); @counter = $NickWordsCounter->get ($nick); @@ -721,7 +721,7 @@ EOF $total = $NickData->{$nick}{'chars_total'}; } - my $title = $realname; + my $title = $name ? get_realname ($name) : ''; if (!$title) { $title = "User: $name; " if ($name);