summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2012-02-16 17:34:40 +0100
committerBerke Viktor <berkeviktor@aol.com>2012-02-16 17:34:40 +0100
commit605c3dea36918a631d917269d78bf9557552608b (patch)
tree6d9ba14237d78bea2355d60ac98d81bbca725a9b /plugins
parentbca7e6c554fe2406004c25056160950a276208f7 (diff)
update xchat to r1501
Diffstat (limited to 'plugins')
-rw-r--r--plugins/perl/alt_completion.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/perl/alt_completion.pl b/plugins/perl/alt_completion.pl
index 2572fb81..71c1884d 100644
--- a/plugins/perl/alt_completion.pl
+++ b/plugins/perl/alt_completion.pl
@@ -30,8 +30,11 @@ my $ignore_leading_non_alnum = 0;
 my $path_completion = 1;
 my $base_path = '';
 
+# ignore the completion_amount setting and always cycle through nicks with tab
+my $always_cycle = 0;
+
 Xchat::register(
-	"Tab Completion", "1.0401", "Alternative tab completion behavior"
+	"Tab Completion", "1.0500", "Alternative tab completion behavior"
 );
 Xchat::hook_print( "Key Press", \&complete );
 Xchat::hook_print( "Close Context", \&close_context );
@@ -203,8 +206,9 @@ sub complete {
 		# don't cycle if the number of possible completions is greater than
 		# completion_amount
 		if(
+			!$always_cycle && (
 			@{$completions->{matches}} > $completion_amount
-			&& @{$completions->{matches}} != 1
+			&& @{$completions->{matches}} != 1 )
 		) {
 			# don't print if we tabbed in the beginning and the list of possible
 			# completions includes all nicks in the channel