Comments (6)
$ 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.
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.
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.
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.
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.
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)
- debian: cmake errors HOT 1
- Crypt Module - IRC Clients that do not keep "sent" text and instead read the IRC response will not display properly HOT 2
- Problem with znc HOT 3
- Problem with rejoin after kick
- znc+fish won't encrypt own messages
- Add OpenID Connect support HOT 3
- Add some way to bypass channel mode cache (or just remove it) HOT 6
- Feature request: ability to disable the "The channel could not be joined, disabling it" behavior HOT 1
- Client connecton stalled after CAP ACK HOT 3
- Portainer Add Template > ZNC - no login
- Add Security Headers to webadmin HOT 5
- Cannot load python modules via webadmin w/ Debian 12/Python 3.11.x/znc-1.9.x HOT 2
- can't remove some channels from chansaver HOT 5
- Reconnecting too fast HOT 6
- Missing `RPL_TOPICWHOTIME` from server results in incorrect `RPL_TOPICWHOTIME` sent to client
- Update the Copyright notice
- Perform /timer unknown command HOT 3
- Watch module ZNC HOT 7
- Missing : in PASS command
- Likely race condition in build system related to `generated.tar.gz` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from znc.