This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

A little perplexed.

Old posts that have not been replied to for several years.
Locked
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

A little perplexed.

Post by Alchera »

I am currently testing eggdrop v1.6.16+rc1 on a RH Linux 2.4.21-9.0.3.EL box (not mine) (TCL 8.5a1) and use a public commands script (mine) with it. This same script is used on other bots (eggdrop v1.6.15) on FreeBSD 5.2-CURRENT accounts (TCL 8.4).

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. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Check your "strict-host" settings in your eggdrop conf files...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

strikelight wrote:Check your "strict-host" settings in your eggdrop conf files...
# Set this to 1 if you don't want your the bot to strip a leading '~' on
# user@hosts.
set strict-host 0

Same setting in all bots (*BSD & RH).

*Edited*

To my mind, what works under one version of Linux should work the same on another version.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I have enabled strict-host on all bots and am testing the script using -nocase on the RH bot. Results so far without a host showing the tilde are good, I'm not getting *!*user@ this time but what I wanted, *!user@. On all bots, a user added showing the tilde is added as *!?user@ which seems to be fine also. :)

Danke
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked