The perplexing bit is that if I use the inline -nocase command on the RH bot script, the hostmask of an added user is altered from what I get, and desire, in the FreeBSD bots (*!user@host.domain). On RH it's altered to *!*user@host.domain.
With the exception of -nocase, the script used under FreeBSD and the one used under RH is identical.
Below are bits of the code using -nocase:
} elseif {[string match -nocase {aop} $cmd]} {
set thehost "[stricthost $thenick $chan]"
adduser $thenick $thehost
..............
}
# stricthost - masks a strict hostname
proc stricthost {host chan} {
set strict 0
if {[string index $host 0] == "!"} {
set host [string range $host 1 end]
set strict 1
}
if {![string match "*!*@*" $host]} {
set addhost "$host![getchanhost $host $chan]"
if {$strict == 0} {
set addhost [maskhost "*$addhost"]
} else {
if {[string index $addhost 0] == "~"} {set addhost "*[string range $addhost 1 end]"}
set addhost "*!$addhost"
}
set host $addhost
}
return $host
}
Would this problem be just a Red Hat "thing" or, is there a workaround?
Thanks in anticipation.
