Attempt to fix a bug in stats subparsing.

This commit is contained in:
Storm Dragon
2026-01-11 19:53:49 -05:00
parent b69f4847a9
commit c748d07662
2 changed files with 4294 additions and 3 deletions

4284
modules/howl/howl.sh Executable file

File diff suppressed because it is too large Load Diff

13
modules/wordtrack/wordtrack.sh Normal file → Executable file
View File

@@ -86,8 +86,12 @@ show_stats() {
fi
}
subCommand="$1"
shift || true
argumentString="$*"
subCommand="${argumentString%% *}"
subArgs=""
if [[ "$argumentString" != "$subCommand" ]]; then
subArgs="${argumentString#* }"
fi
if [[ ! -f "$categoriesFile" ]]; then
msg "$channelName" "The wordtrack trigger has not been configured."
@@ -99,7 +103,10 @@ source "$categoriesFile"
case "$subCommand" in
stats)
targetRaw="${1:-$name}"
targetRaw="${subArgs%% *}"
if [[ -z "$targetRaw" ]]; then
targetRaw="$name"
fi
targetUser="$(sanitize_nick "$targetRaw")"
if [[ -z "$targetUser" ]]; then