Skip to content

Commit 9d3d388

Browse files
committed
# Conflicts: # src/irclineparser.js
2 parents 4ed2dbf + 41b5503 commit 9d3d388

27 files changed

+79
-27
lines changed

browser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
/**
24
* The default irc-framework interface for browsers
35
* Usage: var IrcFramework = require('irc-framework/browser');

docs/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ Not all of these options will be available. Some will be missing depending on th
438438
user: 'prawn',
439439
host: 'manchester.isp.net',
440440
actualip: 'sometimes set when using webirc, could be the same as actualhost',
441-
actuallhost: 'sometimes set when using webirc',
441+
actualhost: 'sometimes set when using webirc',
442442
real_name: 'A real prawn',
443443
helpop: 'is available for help',
444444
bot: 'is a bot',

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
/**
24
* The default irc-framework interface for nodejs
35
* Usage: var IrcFramework = require('irc-framework');

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "irc-framework",
3-
"version": "2.10.1",
3+
"version": "2.10.2",
44
"description": "A better IRC framework for node.js",
55
"main": "index.js",
66
"dependencies": {

src/channel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var _ = require('lodash');
24
var DuplexStream = require('stream').Duplex;
35

src/client.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var EventEmitter = require('eventemitter3');
24
var _ = require('lodash');
35
var MiddlewareHandler = require('middleware-handler');
@@ -247,7 +249,7 @@ IrcClient.prototype.registerToNetwork = function() {
247249
}
248250

249251
this.raw('NICK', this.user.nick);
250-
this.raw('USER', this.user.username, 0, '*', this.user.gecos);
252+
this.raw('USER', this.options.username, 0, '*', this.user.gecos);
251253
};
252254

253255

@@ -625,8 +627,8 @@ IrcClient.prototype.matchAction = function(match_regex, cb) {
625627
* Truncate a string into blocks of a set size
626628
*/
627629
function isHighSurrogate(char_code) {
628-
return char_code >= 55296 // d800
629-
&& char_code <= 56319; // dbff
630+
return char_code >= 55296 && // d800
631+
char_code <= 56319; // dbff
630632
}
631633

632634
function truncateString(str, block_size) {
@@ -639,9 +641,9 @@ function truncateString(str, block_size) {
639641
while (remaining_string.length) {
640642
// Do not split unicode surrogate pairs
641643
this_block_size =
642-
isHighSurrogate(remaining_string.charCodeAt(block_size - 1))
643-
? block_size - 1
644-
: block_size;
644+
isHighSurrogate(remaining_string.charCodeAt(block_size - 1)) ?
645+
block_size - 1 :
646+
block_size;
645647

646648
blocks.push(remaining_string.substr(0, this_block_size));
647649
remaining_string = remaining_string.substr(this_block_size);

src/commands/command.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var _ = require('lodash');
24

35
module.exports = IrcCommand;

src/commands/handler.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var _ = require('lodash');
24
var EventEmitter = require('eventemitter3');
35
var irc_numerics = require('./numerics');

src/commands/handlers/channel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var _ = require('lodash');
24
var Helpers = require('../../helpers');
35

0 commit comments

Comments
 (0)