I'm relatively new to modding WoT and currently I'm trying to make a mod which blacklists player. Therefore a function is obviously necessary. I think I've found it here: \scripts\client\messenger\proto\xmpp\contacts\__init__.py in the class ContactsManager.
My attempt to use this function is here:
CM = ContactsManager()
databID = getAvatarDatabaseID()
names_ = avatar_getter.getPlayerName()
The function addIgnored has 3 arguments: self, dbID and name. I used all arguments, didn't I?
If I try to execute this, it doesn't work and I can find this in the logfile:
2020-04-19 22:38:52.718: ERROR: File "mod_test", line 23, in teambl_key
2020-04-19 22:38:52.718: ERROR: File "scripts/client/messenger/proto/xmpp/decorators.py", line 80, in wrapper
2020-04-19 22:38:52.718: ERROR: TypeError: addIgnored() takes exactly 4 arguments (3 given)
This function also has a decorator, but I can't discover any 4th argument.
Am I missing something or is this probably the wrong function?
I'd appreciate any help and thanks in advance.