Update irc-framework
This commit is contained in:
parent
071881a9fa
commit
a01216fa4c
@ -1,7 +1,7 @@
|
||||
<div>
|
||||
<a href="#" class="user" data-name="{{whois.nick}}">{{whois.nick}}</a>
|
||||
<i class="hostmask">({{whois.user}}@{{whois.host}})</i>:
|
||||
<b>{{whois.realname}}</b>
|
||||
<b>{{whois.real_name}}</b>
|
||||
</div>
|
||||
{{#if whois.account}}
|
||||
<div>
|
||||
|
@ -33,7 +33,7 @@
|
||||
"event-stream": "3.3.2",
|
||||
"express": "4.13.4",
|
||||
"lodash": "4.6.1",
|
||||
"irc-framework": "1.0.3",
|
||||
"irc-framework": "1.0.4",
|
||||
"mkdirp": "0.5.1",
|
||||
"moment": "2.12.0",
|
||||
"read": "1.0.7",
|
||||
|
@ -7,7 +7,7 @@ module.exports = function(irc/* , network */) {
|
||||
irc.ctcpResponse(data.nick, "VERSION " + pkg.name + " " + pkg.version);
|
||||
break;
|
||||
case "PING":
|
||||
var split = data.msg.split(" ");
|
||||
var split = data.message.split(" ");
|
||||
if (split.length === 2) {
|
||||
irc.ctcpResponse(data.nick, "PING " + split[1]);
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ module.exports = function(irc, network) {
|
||||
|
||||
// Self messages are never highlighted
|
||||
// Non-self messages are highlighted as soon as the nick is detected
|
||||
var highlight = !self && data.msg.split(" ").some(function(w) {
|
||||
var highlight = !self && data.message.split(" ").some(function(w) {
|
||||
return (w.replace(/^@/, "").toLowerCase().indexOf(irc.user.nick.toLowerCase()) === 0);
|
||||
});
|
||||
|
||||
@ -68,7 +68,7 @@ module.exports = function(irc, network) {
|
||||
time: data.time,
|
||||
mode: chan.getMode(data.nick),
|
||||
from: data.nick,
|
||||
text: data.msg,
|
||||
text: data.message,
|
||||
self: self,
|
||||
highlight: highlight
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user