Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2017-07-18 00:00:00Z and 2017-07-19 00:00:00Z
<heinrich5991> I don't think it's a bad idea to restrict the server log to admins
00:44
<heinrich5991> whitelists do work better than blacklists after all
00:44
<Learath2> i don't either, i just object to the way he did it
00:44
<heinrich5991> usually, his code quality is quite good – in this case, we have global variables :/
00:45
<Learath2> by default everyone gets access to the outputs of their own commands, everything else is determined by the print command.
00:45
<heinrich5991> no, even that is determined by the print command
00:45
<Learath2> that's how i'd do it, not how i think it is
00:46
<heinrich5991> ah
00:46
<Learath2> could even have the default access level at admin so mods don't see the server log
00:47
<Learath2> could go even further and make negatives levels, positives client id's and have one optional argument, wouldn't even break the original signature
00:49
<Learath2> heinrich5991: why was m_RconClientID used anyways? was matricks low on arguments?
00:50
<heinrich5991> well, you'd need to pass it through some kind of userdata
00:50
<heinrich5991> might have decided that the global variable approach is just saner for the programmer
00:50
<heinrich5991> and if that's the case, then the new global variable from oy seems a lot less problematic
00:51
<Learath2> we already pass CServer in the Userdata
00:52
<heinrich5991> yes. it'd need an extra userdata passed per executed command
00:53
<Learath2> struct CCommandContext { IServer *m_pSelf, int m_Level, int m_OutputTarget } \o/
00:53
<heinrich5991> doesn't work, the userdata is created on Console()->AddCommand
00:54
<heinrich5991> and it doesn't work to only pass it on ExecuteCommand, because different console commands take different userdata
00:57
<Learath2> the console can add it before calling the command
00:57
<Learath2> s/command/callback/
00:58
<Learath2> would even be logical for ExecuteCommand to take a Level and an OutputTarget
<deen> heinrich5991: ehm, the downloader is a binary file?
15:57
<deen> heinrich5991: I like source code
15:58
<deen> heinrich5991: and that reminds me, your rust map properties thing is broken and you never published the source code, so I guess I'll rewrite it in C++ and put it in DDNet repo of course
Have you idea, how to detect mobile via apache2 or nginx? or maybe solution via PHP? I have to serve proper version of website for mobile and non-mobile users(edited)