florian-sander / stats.mod

stats.mod is a module which equips your eggdrop with the ability to create various statistics about your channels.
http://www.kreativrauschen.com/stats.mod/
9 stars 5 forks source link

[1.8.x] Deprecated my-ip/hostname #12

Open wilkowy opened 5 years ago

wilkowy commented 5 years ago

The 1.8 patch fixed the module to work in new eggdrops, but due to variables my-ip and my-hostname being deprecated if someone is using new conf he is missing them. Now while we are rehashing the bot (and using livestats feature) we get:

[10/00:08:02] Tcl error in script for 'livestats-hack-start':
[10/00:08:02] can't read "my-hostname": no such variable
[10/00:08:02] WARNING: You are using the DEPRECATED variable 'my-ip' in your config file.
[10/00:08:02]     To prevent future incompatibility, please use the vhost4/listen-addr variables instead.
[10/00:08:02]     More information on this subject can be found in the eggdrop/doc/IPV6 file, or
[10/00:08:02]     in the comments above those settings in the example eggdrop.conf that is included with Eggdrop.
[10/00:08:02] WARNING: You are using the DEPRECATED variable 'my-ip' in your config file.
[10/00:08:02]     To prevent future incompatibility, please use the vhost4/listen-addr variables instead.
[10/00:08:02]     More information on this subject can be found in the eggdrop/doc/IPV6 file, or
[10/00:08:02]     in the comments above those settings in the example eggdrop.conf that is included with Eggdrop.
[10/00:08:02] Tcl error in script for 'livestats-hack-end':
[10/00:08:02] can't read "my-hostname-livestats-backup": no such variable

The quick solution is to add back those variables to config, however eggdrop will still produce warnings instead of those errors (4 warnings in total each rehashing on LOG_MISC level, function traced_myiphostname from src/net.c).

This is related to #11 unfortunately issuer has decided to close his issue for unknown reason.