-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert irc package to js #7022
Conversation
@ggazzo i will need your help testing this |
// message order could not make sure here | ||
this.isConnected = true; | ||
const messageBuf = this.msgBuf; | ||
messageBuf.forEach(msg => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one line
} | ||
|
||
createUserWhenNotExist(name) { | ||
let user; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this logic is seem good, but at least use one line to declare and set the variable.
}; | ||
|
||
IrcClient.create = function(login) { | ||
let ircClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
declare where the variable is used. (line 389).
const IRC_AVAILABILITY = RocketChat.settings.get('IRC_Enabled'); | ||
|
||
// Cache prep | ||
const net = Npm.require('net'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that you should use import
@ggazzo fixed the things you mentioned |
return login; | ||
}; | ||
|
||
class IrcLoginer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a function instead class
} | ||
} | ||
|
||
class IrcSender { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a function instead class
|
||
} | ||
|
||
class IrcRoomJoiner { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a function instead class
|
||
} | ||
|
||
class IrcRoomLeaver { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a function instead class
|
||
} | ||
|
||
class IrcLogoutCleanUper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a function instead class
@haosdent @toxicgumbo could you help us to verify if this package still works? |
@RocketChat/core