Add setNickname docs

This commit is contained in:
abalabahaha
2016-04-30 11:58:12 -07:00
parent 249b6f919a
commit e48f2ffae3
4 changed files with 28 additions and 0 deletions

View File

@@ -812,6 +812,11 @@ export default class Client extends EventEmitter {
// def setNickname
setNickname(server, nick, user, callback = (/*err, {}*/) => { }) {
if (typeof user === "function") {
// user is the callback
callback = user;
user = null;
}
if(!user) {
user = this.user;
}