Skip to content

Commit de8b696

Browse files
committed
Use strict mode everywhere to make sure Node v4 is compatible with ES6 features
1 parent 131a5f8 commit de8b696

24 files changed

+62
-15
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');

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');

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: 2 additions & 0 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');

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

src/commands/handlers/generics.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
35
Generic IRC events. Simply passing selected IRC params into javascript objects

src/commands/handlers/messaging.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 util = require('util');
35

src/commands/handlers/misc.js

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

35
var handlers = {
@@ -204,7 +206,7 @@ module.exports = function AddCommandHandlers(command_controller) {
204206
function getChanListCache(that) {
205207
var cache = that.cache('chanlist');
206208

207-
// fix some IRC networks
209+
// fix some IRC networks
208210
if (!cache.channels) {
209211
cache.channels = [];
210212
}

0 commit comments

Comments
 (0)