Giter Club home page Giter Club logo

Comments (6)

psychon avatar psychon commented on July 21, 2024
$ grep ISpoofFile ~/.znc/configs/znc.conf
ISpoofFile   = ~/.oidentd.conf

and
$ ./znc --debug | grep ISpoofFile
Writing [global { reply "psy" }] to ISpoofFile [/home/psychon/.oidentd.conf]
Why does this work here? Does this have anything to do with it?
$ echo $HOME
/home/psychon

from znc.

Robby- avatar Robby- commented on July 21, 2024

DoesNotWorkForMe :p

I just changed ISpoofFile to ~/.oidentd.conf again and then this happens:
-> /znc connect

[2011/02/18-02:34:31] *status: Jumping to the next server in the list...

[2011/02/18-02:34:32] *status: Disconnected from IRC. Reconnecting...

[2011/02/18-02:34:32] *status: ISpoof [~/.oidentd.conf] could not be written, retrying...

[2011/02/18-02:34:42] *status: ISpoof [~/.oidentd.conf] could not be written, retrying...

[2011/02/18-02:34:52] *status: ISpoof [~/.oidentd.conf] could not be written, retrying...

...

Maybe the current method for finding ~ isn't totally multiplatform-compatible?
My operating system is Fedora 10 (32-bit) by the way.

"echo $HOME" works, yes.

If I put the full path again then it works again. Strange that it works for you.

(I have yet to try it with --debug to see what it says.)

from znc.

psychon avatar psychon commented on July 21, 2024

I just remembered that the "Writing..." line was added to the --debug output after 0.096, so perhaps your znc doesn't have that... :(

from znc.

Robby- avatar Robby- commented on July 21, 2024

I'm running r2270-SVN-20110118 (0.097), but that doesn't matter then, I'll upgrade it anyway, and then we can hopefuly find the problem. :)

from znc.

Robby- avatar Robby- commented on July 21, 2024

I have just upgraded ZNC to latest Git (080bf67) and have messed around a bit.

It seems that if you put for example ~/.oidentd.conf and click Save, that it is written as such to znc.conf, but I have found that when ZNC is restarted or rehashed that it expands the ~/.oidentd.conf to the full path (/home/user/.oidentd.conf) and if the config then gets rewritten for whatever reason it also saves it with that full path to znc.conf. So changing this on the fly and not rehashing causes problems like I had above.

This raises the question: Why do this? Why have the ~ only be parsed on rehash and not on save? Why even do this at all? Maybe better to have ZNC save and parse ~ all the time, regardless of rehash/restart. That's also easier for moving ZNC's datadir from one machine to another and keep paths with a ~ in the config without needing to change those (SSLCertFile and ISpoofFile).

from znc.

psychon avatar psychon commented on July 21, 2024

Ah, I always tested this by editing ~/.znc/configs/znc.conf before starting znc. It never occured to me (and no one mentioned it!) that others set this via webadmin.

The config reading did handle the leading "~", but webadmin obviously didn't. I now moved this to the generic "read/write some file"-code.

Thanks for finally figuring out where the problem is!

from znc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.