diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/YourChat.pro b/YourChat.pro old mode 100644 new mode 100755 index 069c201..e69de29 --- a/YourChat.pro +++ b/YourChat.pro @@ -1,40 +0,0 @@ -TEMPLATE = app -CONFIG += console c++11 -CONFIG -= app_bundle -CONFIG -= qt -TARGET = yourchat - -QMAKE_CC = g++-7 -QMAKE_CXX = g++-7 -QMAKE_CXXFLAGS += -std=gnu++11 -g - -SOURCES += main.cpp \ - config.cpp \ - server.cpp \ - room.cpp \ - user.cpp \ - tools.cpp \ - base.cpp - -DISTFILES += \ - config/chatconfig.json - -HEADERS += \ - config.h \ - server.h \ - room.h \ - user.h \ - tools.h \ - base.h - -LIBS += -ljsoncpp \ - -lpthread - -bin.path = /opt/yourchat -bin.files += yourchat - -config.path = /etc/yourpart -config.files += config/chatconfig.json - -INSTALLS += bin \ - config diff --git a/base.cpp b/base.cpp old mode 100644 new mode 100755 diff --git a/base.h b/base.h old mode 100644 new mode 100755 diff --git a/config.cpp b/config.cpp old mode 100644 new mode 100755 diff --git a/config.h b/config.h old mode 100644 new mode 100755 diff --git a/config/chatconfig.json b/config/chatconfig.json old mode 100644 new mode 100755 diff --git a/main.cpp b/main.cpp old mode 100644 new mode 100755 diff --git a/room.cpp b/room.cpp old mode 100644 new mode 100755 diff --git a/room.h b/room.h old mode 100644 new mode 100755 diff --git a/server.cpp b/server.cpp old mode 100644 new mode 100755 diff --git a/server.h b/server.h old mode 100644 new mode 100755 diff --git a/tools.cpp b/tools.cpp old mode 100644 new mode 100755 diff --git a/tools.h b/tools.h old mode 100644 new mode 100755 diff --git a/user.cpp b/user.cpp old mode 100644 new mode 100755 index a1bba28..14648e1 --- a/user.cpp +++ b/user.cpp @@ -111,7 +111,6 @@ namespace Yc { if (jsonTree["token"].asString() != _token) { return; } - std::cout << jsonTree["type"].asString() << std::endl; if (jsonTree["type"].asString() == "message") { checkString(jsonTree["message"].asString()); } else if (jsonTree["type"].asString() == "dice") { diff --git a/user.h b/user.h old mode 100644 new mode 100755