From b71358ca8a217133f04ede0ba3f26718a45df802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 23 Jun 2017 23:04:00 +0200 Subject: Facebook: unneeded crutch removed (reverted from commit b846cb5043b6d5f5ac59cb40f252bc9ced189dfd) We need values with "abcdefgh...xyz0123456789", that's why radix 36 was used. INT_VALUE produces only numbers. --- protocols/FacebookRM/src/client.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src/client.h') diff --git a/protocols/FacebookRM/src/client.h b/protocols/FacebookRM/src/client.h index 6018a196aa..6e3a3e2e87 100644 --- a/protocols/FacebookRM/src/client.h +++ b/protocols/FacebookRM/src/client.h @@ -153,8 +153,11 @@ public: return ""; // FIXME: What's this value and where it come from? Looks like it is the same through all requests. } - __inline unsigned int __req() { // Increment request number - return InterlockedIncrement(&this->chat_req_); + __inline CMStringA __req() { + // Increment request number and convert it to string with radix 36 (whole numbers + whole alphabet) + char buffer[10]; + itoa(InterlockedIncrement(&this->chat_req_), buffer, 36); + return CMStringA(buffer); } __inline const char *__rev() { -- cgit v1.2.3