mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-25 20:13:01 +01:00
Merge with master branch
This commit is contained in:
commit
c760ffc563
11
astylerc
Normal file
11
astylerc
Normal file
@ -0,0 +1,11 @@
|
||||
--style=kr
|
||||
--pad-header
|
||||
--max-code-length=120
|
||||
--convert-tabs
|
||||
--indent-switches
|
||||
--pad-oper
|
||||
--align-pointer=name
|
||||
--align-reference=name
|
||||
--preserve-date
|
||||
--lineend=linux
|
||||
--break-blocks
|
@ -128,6 +128,7 @@ void cmd_groupinvite(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*a
|
||||
|
||||
int groupnum = atoi(argv[1]);
|
||||
|
||||
|
||||
if (groupnum == 0 && strcmp(argv[1], "0")) { /* atoi returns 0 value on invalid input */
|
||||
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Invalid group number.");
|
||||
return;
|
||||
|
@ -239,6 +239,7 @@ int init_groupchat_win(Tox *m, uint32_t groupnum, const char *groupname, size_t
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
groupchat_onGroupPeerJoin(&self, m, groupnum, peer_id);
|
||||
|
||||
return 0;
|
||||
|
@ -114,6 +114,12 @@ void on_nickchange(Tox *m, uint32_t friendnumber, const uint8_t *string, size_t
|
||||
void on_statuschange(Tox *m, uint32_t friendnumber, TOX_USER_STATUS status, void *userdata);
|
||||
void on_statusmessagechange(Tox *m, uint32_t friendnumber, const uint8_t *string, size_t length, void *userdata);
|
||||
void on_friendadded(Tox *m, uint32_t friendnumber, bool sort);
|
||||
void on_file_chunk_request(Tox *m, uint32_t friendnumber, uint32_t filenumber, uint64_t position, size_t length,
|
||||
void *userdata);
|
||||
void on_groupinvite(Tox *m, int32_t friendnumber, uint8_t type, const uint8_t *group_pub_key, uint16_t length,
|
||||
void *userdata);
|
||||
void on_group_titlechange(Tox *m, int groupnumber, int peernumber, const uint8_t *title, uint8_t length,
|
||||
void *userdata);
|
||||
void on_file_chunk_request(Tox *m, uint32_t friendnumber, uint32_t filenumber, uint64_t position, size_t length,
|
||||
void *userdata);
|
||||
void on_file_recv_chunk(Tox *m, uint32_t friendnumber, uint32_t filenumber, uint64_t position, const uint8_t *data,
|
||||
|
Loading…
Reference in New Issue
Block a user