Skip to content

Commit

Permalink
Stop suggesting things when we're not on the first parv =]
Browse files Browse the repository at this point in the history
  • Loading branch information
ValwareIRC authored Jul 26, 2023
1 parent 1894c55 commit 39ef3ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions autocomplete/autocomplete.mrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
; LICENSE: GPLv3-or-later
; AUTHOR: Valware
;
; Special thanks to Koragg
; This script works with the third/cmdslist UnrealIRCd module
;
; Suggests and auto-completes /commands using the tab button.
; Suggests and auto-completes

on *:PARSELINE:in:*:{
var %cap valware.uk/cmdslist
Expand All @@ -29,8 +28,12 @@ on *:PARSELINE:in:*:{
else return
}

; Special thanks to Koragg for pointing out I
; can use TABCOMP instead of some F-key alias
; <3
on *:TABCOMP:*:{
tokenize 32 $editbox($active)
if ($2) return
if ($left($1,1) != /) return
if ($len($1) == 1) {
commands
Expand Down

0 comments on commit 39ef3ba

Please sign in to comment.