Minor changes

This commit is contained in:
Mattias Erming 2014-09-16 10:33:15 -07:00
parent 044b61be29
commit 216030710a
6 changed files with 16 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@ function escape(text) {
var e = {
"<": "&lt;",
">": "&gt;",
"'": "&quot;"
"'": "&#39;"
};
return text.replace(/[<>']/g, function (c) {
return e[c];

View File

@ -47,7 +47,7 @@ module.exports = {
// Enable debug mode.
// This is only useful for development.
//
// @type string
// @type boolean
// @default false
//
debug: false,

View File

@ -1,7 +1,7 @@
{
"name": "shout",
"description": "A web IRC client",
"version": "0.30.1",
"version": "0.30.2",
"author": "Mattias Erming",
"preferGlobal": true,
"bin": {

View File

@ -50,13 +50,14 @@ program
}
});
function add(manager, name, password) {
function add(manager, name, password) {
console.log("");
var hash = bcrypt.hashSync(password, 8);
manager.addUser(
name,
hash
);
console.log("Added '" + name + "'.");
console.log("User '" + name + "' created:");
console.log(Helper.resolveHomePath("users", name, "user.json"));
console.log("");
}
}

View File

@ -3,8 +3,8 @@ var Msg = require("../../models/msg");
module.exports = function(irc, network) {
var client = this;
var self = false;
irc.on("nick", function(data) {
var self = false;
if (data["new"] == irc.me) {
var lobby = network.channels[0];
var msg = new Msg({