@@ -296,6 +296,9 @@ topichistory Maximum number of topics to show in 'latest topics'
urlhistory Maximum number of URLs to show in 'most referenced URLs'
(default: 5)
+wordhistory Maximum number of words to show in 'Most used words'
+ (default: 10)
+
langfile Filename of language file.
(default: lang.txt)
@@ -169,6 +169,7 @@ sub get_default_config_settings
activenicks2 => 30,
topichistory => 3,
urlhistory => 5,
+ wordhistory => 10,
nicktracking => 0,
charset => 'iso-8859-1',
@@ -1401,7 +1401,7 @@ sub _mostusedword
my $count = 0;
- for(my $i = 0; $count < 10; $i++) {
+ for(my $i = 0; $count < $self->{cfg}->{wordhistory}; $i++) {
last unless $i < $#popular;
# Skip nicks. It's far more efficient to do this here than when
# @popular is created.