Skip to content

Commit b57c813

Browse files
committed
Minor fixes.
1 parent 7247d20 commit b57c813

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

core/network/adc/client/adcclientsession.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2001-2008 Jan Vidar Krey, [email protected]
2+
* Copyright (C) 2001-2010 Jan Vidar Krey, [email protected]
33
* See the file "COPYING" for licensing details.
44
*/
55

@@ -127,6 +127,7 @@ void ADC::ClientSession::onINF(const char* cid, const char* remote_token)
127127
QDBG("Authorized for upload: %s", upload_approved ? "yes" : "no");
128128
} else if (remote_token) {
129129
QDBG("FIXME: We have a remote token. So lets lookup what to do about it");
130+
upload_approved = true;
130131
} else {
131132
QDBG("FIXME: nobody wants to do anything! - Close connection");
132133
}

core/network/adc/client/adcclientsession.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2001-2008 Jan Vidar Krey, [email protected]
2+
* Copyright (C) 2001-2010 Jan Vidar Krey, [email protected]
33
* See the file "COPYING" for licensing details.
44
*/
55

core/test/cli/commands.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void parseCommand(const char* cmd, size_t size) {
224224
hub->disconnect();
225225
} else if (MATCH("version")) {
226226
cmd_output( "%s\n"
227-
" Copyright (C) 2001-2007 Jan Vidar Krey, [email protected]\n"
227+
" Copyright (C) 2001-2010 Jan Vidar Krey, [email protected]\n"
228228
" This is free software with ABSOLUTELY NO WARRANTY.\n\n", core->getVersion());
229229

230230
} else if (MATCH("help")) {
@@ -237,7 +237,7 @@ void parseCommand(const char* cmd, size_t size) {
237237
*/
238238

239239
} else if (MATCH("msg ")) {
240-
char* split = strchr(&cmd[6], ' ');
240+
const char* split = strchr(&cmd[6], ' ');
241241
if (split) {
242242
char* nick = strndup(&cmd[5], &split[0]-&cmd[5]);
243243
const QuickDC::User* user = hub->getUserManager()->getUserByNick(nick);

core/test/cli/hubconnection.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2001-2008 Jan Vidar Krey, [email protected]
2+
* Copyright (C) 2001-2010 Jan Vidar Krey, [email protected]
33
* See the file "COPYING" for licensing details.
44
*/
55

@@ -82,6 +82,11 @@ void HubConnection::EventHubStatus(enum StatusHub) {
8282
// FIXME: Add this!
8383
}
8484

85+
void HubConnection::EventSystemError(const char*)
86+
{
87+
// FIXME: Add this!
88+
}
89+
8590
void HubConnection::EventChat(const QuickDC::User* user, const char* message, bool action)
8691
{
8792
if (action)

core/test/cli/hubconnection.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2001-2008 Jan Vidar Krey, [email protected]
2+
* Copyright (C) 2001-2010 Jan Vidar Krey, [email protected]
33
* See the file "COPYING" for licensing details.
44
*/
55

@@ -16,26 +16,27 @@ class HubConnection : public QuickDC::Hub, public QuickDC::HubListener {
1616

1717
void EventNetStatus(enum StatusNetwork netstate);
1818
void EventHubStatus(enum StatusHub);
19-
19+
void EventSystemError(const char*);
20+
2021
void EventChat(const QuickDC::User* user, const char* message, bool);
2122

2223
void EventPrivateChat(const QuickDC::User* from, const QuickDC::User* to, const char* message, const char* context, bool action);
2324
void EventHubMessage(const char* user, const char* message);
2425

2526
void EventUserJoin(const char* user);
2627
void EventUserLeave(const QuickDC::User* user, const char* message, bool);
27-
28+
2829
void EventUserUpdate(const QuickDC::User*);
2930
void EventUsersCleanup();
3031
void EventSearchResult(void*);
3132
void EventHubName(const char* hubname);
3233
bool EventHubRedirect(const char*, uint16_t);
3334
void EventHubAutenticate();
34-
35+
3536
bool EventClientConnect(const char* addr, uint16_t port, const QuickDC::User* u);
36-
37+
3738
bool EventClientConnect(const QuickDC::User* u);
38-
39+
3940
public:
4041
bool showjoins;
4142
bool allowConnections;

core/test/cli/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2001-2008 Jan Vidar Krey, [email protected]
2+
* Copyright (C) 2001-2010 Jan Vidar Krey, [email protected]
33
* See the file "COPYING" for licensing details.
44
*/
55

0 commit comments

Comments
 (0)