Updates for latest inspircd & anope

This commit is contained in:
2025-09-29 16:33:05 -05:00
parent a14dfd6562
commit 78af592485
16 changed files with 77 additions and 81 deletions

View File

@@ -1,12 +1,12 @@
#!/usr/bin/bash
# File: find-bad-ipam
#
#
# Description: This file finds bad IPAM entries in an inventory.
#
#
# Package: AniNIX/Ubiqtorate
# Copyright: WTFPL
#
#
# Author: DarkFeather <ircs://aninix.net:6697/DarkFeather>
file="examples/msn0.yml"
@@ -14,7 +14,7 @@ file="examples/msn0.yml"
function findBadTerm() {
### Check for a term to be duplicated.
# param file: the file
# param term: the term to search for duplicates
# param term: the term to search for duplicates
file="$1"
term="$2"
results="$(grep -i "$term:" "$file" | tr '[[:upper:]]' '[[:lower:]]' | sed 's/\s+'"$term"':\s*//' | sort | uniq -c | grep -vE '^\s+1\s+' )"
@@ -26,7 +26,7 @@ function findBadTerm() {
fi
}
function Usage() {
function Usage() {
### Helptext
# param retcode: what to return
retcode="$1"