projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for IrcUser's existence in handleMode()
[quassel.git]
/
src
/
core
/
core.cpp
diff --git
a/src/core/core.cpp
b/src/core/core.cpp
index
ebe1b08
..
b24eefb
100644
(file)
--- a/
src/core/core.cpp
+++ b/
src/core/core.cpp
@@
-37,9
+37,16
@@
#ifdef Q_OS_WIN32
# include <windows.h>
#else
#ifdef Q_OS_WIN32
# include <windows.h>
#else
+# include <unistd.h>
# include <termios.h>
#endif /* Q_OS_WIN32 */
# include <termios.h>
#endif /* Q_OS_WIN32 */
+// umask
+#ifndef Q_OS_WIN32
+# include <sys/types.h>
+# include <sys/stat.h>
+#endif /* Q_OS_WIN32 */
+
// ==============================
// Custom Events
// ==============================
// ==============================
// Custom Events
// ==============================
@@
-73,6
+80,9
@@
void Core::destroy() {
Core::Core()
: _storage(0)
{
Core::Core()
: _storage(0)
{
+#ifndef Q_OS_WIN32
+ umask(S_IRWXG | S_IRWXO);
+#endif /* Q_OS_WIN32 */
_startTime = QDateTime::currentDateTime().toUTC(); // for uptime :)
Quassel::loadTranslation(QLocale::system());
_startTime = QDateTime::currentDateTime().toUTC(); // for uptime :)
Quassel::loadTranslation(QLocale::system());