Anope IRC Services

Anope Development => Modules => Topic started by: Dustin on February 28, 2013, 10:58:36 AM

Title: [Request] Update to hs_operon
Post by: Dustin on February 28, 2013, 10:58:36 AM
hs_operon has been a useful mod allowing me to turn vhosts on for my eggdrop bots without having to restart them to get their vhost (or to type the TCL command to identify with services). It's broke as of anope version 1.8.7 that I have been aware of.

Additional Info:
IRCd: Unreal32
What happens: services does not start. log file indicates a segmentation fault
[Feb 28 04:35:01 2013] Backtrace: Segmentation fault detected
[Feb 28 04:35:01 2013] Backtrace: report the following lines
[Feb 28 04:35:01 2013] Backtrace: Anope version 1.8.8-git (3111) build #1, compiled Feb 28 2013 04:30:23  QM
[Feb 28 04:35:01 2013] Backtrace(0): ./services(do_backtrace+0x42) [0x431b52]
[Feb 28 04:35:01 2013] Backtrace(1): ./services(sighandler+0x154) [0x431d34]
[Feb 28 04:35:01 2013] Backtrace(2): /lib/x86_64-linux-gnu/libc.so.6(+0x324f0) [0x7fd2e6e234f0]
[Feb 28 04:35:01 2013] Backtrace(3): /lib/x86_64-linux-gnu/libc.so.6(+0x80e21) [0x7fd2e6e71e21]
[Feb 28 04:35:01 2013] Backtrace(4): /lib/x86_64-linux-gnu/libc.so.6(__strdup+0x16) [0x7fd2e6e71b36]
[Feb 28 04:35:01 2013] Backtrace(5): ./services(sstrdup+0xb) [0x43275b]
[Feb 28 04:35:01 2013] Backtrace(6): ./services(moduleInsertLanguage+0xcf) [0x43993f]
[Feb 28 04:35:01 2013] Backtrace(7): /home/s2inetworks/services/modules/runtime/hs_operon.so.HSp3iK(mAddLanguage+0x1e) [0x7fd2e83e93ce]
[Feb 28 04:35:01 2013] Backtrace(8): /home/s2inetworks/services/modules/runtime/hs_operon.so.HSp3iK(AnopeInit+0x94) [0x7fd2e83e9474]
[Feb 28 04:35:01 2013] Backtrace(9): ./services(loadModule+0x452) [0x43a142]
[Feb 28 04:35:01 2013] Backtrace: complete
[Feb 28 04:35:01 2013] Services terminating: Segmentation fault
Title: Re: [Request] Update to hs_operon
Post by: Jens Voss on February 28, 2013, 01:30:46 PM
I downloaded this module, compiled it with 1.8-git and it loads without crashing. (functionality not tested)

Are you sure you are compiling and installing the module from the actual anope 1.8 source? (check file creation time of ~/services/modules/hs_operon.so )

If its still crashing try to set the "#define LANG_NUM_STRINGS" to 1.
Title: Re: [Request] Update to hs_operon
Post by: katsklaw on March 03, 2013, 11:21:20 AM
You don't need to restart your eggdrop at all nor even the hs_operon module. You can send a series of commands upon connection, much like mIRC's perform.

In your eggdrop's config file find:

Code: [Select]
# This is a Tcl script to be run immediately after connecting to a server.
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
}

change it to something like:

Code: [Select]
# This is a Tcl script to be run immediately after connecting to a server.
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
  putquick "NICKSERV IDENTIFY <bots_password>"
  putquick "any other valid command to perform"
}

putquick can even be used to oper up, message/memo users/channels .. etc. Oper up example would be putquick "OPER login password". The NICKSERV IDENTIFY example assumes you have UnrealIRCd's Anope aliases loaded.