mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:33:02 +01:00
Temp fix for nick change spam on group join
This commit is contained in:
parent
a69fad15c1
commit
68ce17a57f
@ -420,7 +420,7 @@ static void groupchat_onGroupPeerNameChange(ToxWindow *self, Tox *m, uint32_t gr
|
|||||||
GroupPeer *peer = &chat->peer_list[i];
|
GroupPeer *peer = &chat->peer_list[i];
|
||||||
|
|
||||||
// Test against default tox name to prevent nick change spam on initial join (TODO: this is disgusting)
|
// Test against default tox name to prevent nick change spam on initial join (TODO: this is disgusting)
|
||||||
if (peer->active && peer->peernumber == peernum && strcmp(peer->name, "Tox User")) {
|
if (peer->active && peer->peernumber == peernum && peer->name_length > 0) {
|
||||||
ChatContext *ctx = self->chatwin;
|
ChatContext *ctx = self->chatwin;
|
||||||
char timefrmt[TIME_STR_SIZE];
|
char timefrmt[TIME_STR_SIZE];
|
||||||
get_time_str(timefrmt, sizeof(timefrmt));
|
get_time_str(timefrmt, sizeof(timefrmt));
|
||||||
|
Loading…
Reference in New Issue
Block a user