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