Deprecated: Use of "parent" in callables is deprecated in /var/www/html/forum/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php on line 431
  • If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

clientNick event not work!

Status
Not open for further replies.

VerHext

Donor
is awesome!
Contributor
Insider
Operating System: Windows / Linux

Problem Description
Ich habe festgestellt dass, das Client objekt nicht im "clientNick" event aufrufen ist.


Code:
event.on('clientNick', function(ev) {
   engine.log(ev.client.name()); // undefiniert
});
 

kapabac

Active Member
Contributor
Insider
It works already half a year!) You simply not properly use it, for example...
Code:
event.on('clientNick', function(ev, old) {
    engine.log(old); // old nick
    engine.log(ev.nick()); // new nick
});
 

VerHext

Donor
is awesome!
Contributor
Insider
yes, thats right but I should access the client object so doku. I know that I get the object with
Code:
backend.getClientByNick(ev.nick());

91c269ae073272c4e5c9817cd0799268.png
 
Status
Not open for further replies.
Top