Update irc-framework

This commit is contained in:
Pavel Djundik 2016-03-15 11:41:11 +02:00 committed by Maxime Poulin
parent 071881a9fa
commit a01216fa4c
4 changed files with 5 additions and 5 deletions

View file

@ -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>

View file

@ -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",

View file

@ -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]);
}

View file

@ -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
});