Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

autovoice module

Help
coredix
2007-10-23
2013-06-05
  • coredix
    coredix
    2007-10-23

    hi all,

    sometimes ago there was an autovoice module for v0.45.
    since i´ve lost my whole installation i really would appreciate getting this module for v0.50.

    can anybody point me to where i can get it?

    thanks coredix

     
    • Psychon
      Psychon
      2007-10-24

      Hi,

      I'm sorry, I don't know about an autovoice module. Was it just autoop with __NOKEY__? If yes, I might consider writting it (again? ;) ).

      psychon

       
      • coredix
        coredix
        2007-10-24

        hi psychon,
        thanks for your attention.
        i don´t think it was the same but i´m not too deep into coding ;)

        i´ve found the old module, but it won´t compile in my new installation (v0.50).

        for reference you can download it from here: http://w3.coredix.net/cms/sites/default/files/data/autovoice.cpp

        compile fails as follows:

        bouncer@com:~/.znc/source/modules$ znc-buildmod autovoice.cpp
        [    ] Building autovoice.so... /usr/include/znc/Modules.h:211: warning: 'virtual bool CModule::OnLoad(const CString&, CString&)' was hidden
        autovoice.cpp:14: warning:   by 'virtual bool CAutoVoice::OnLoad(const CString&)'
        /usr/bin/ld: cannot open output file autovoice.so: Permission denied
        collect2: ld returned 1 exit status
        [ ** ] Error while building autovoice.so

        regards coredix

         
        • Psychon
          Psychon
          2007-10-24

          Hi,

          nice indentation on that module... If I had time I would clean it up and add it to the wiki.

          The linker error is a problem on your site, do you have written permissions to that dir? (or anything like this?)

          For the warning (which is indeed an error):
          Just change
          virtual bool OnLoad(const CString& sArgs) {
          (line 14) into this:
          virtual bool OnLoad(const CString& sArgs, CString& sErrorMsg) {

          Yay for API changes ;)

          psychon

          P.S.: I haven't actually tested the module, I just know it compiles here.

           
          • coredix
            coredix
            2007-10-24

            thanks a lot, that linechange did the trick.

            to all others: if you use this module, don´t forget to actually ADD chanels with /msg *autovoice add #channel after loading it ;)

            thanks again!

            coredix

             
    • coredix
      coredix
      2007-10-24

      it´s me again ;)

      after fixing the permissions problem the module compiles (still some errors though).

      com:/home/bouncer/.znc/source/modules# znc-buildmod autovoice.cpp
      [    ] Building autovoice.so... /usr/include/znc/Modules.h:211: warning: 'virtual bool CModule::OnLoad(const CString&, CString&)' was hidden
      autovoice.cpp:14: warning:   by 'virtual bool CAutoVoice::OnLoad(const CString&)'
      [ ok ]

      unfortunately it loads just fine but does nothing :(

      coredix