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

View File

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

View File

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

View File

@ -50,13 +50,14 @@ program
} }
}); });
function add(manager, name, password) { function add(manager, name, password) {
console.log(""); console.log("");
var hash = bcrypt.hashSync(password, 8); var hash = bcrypt.hashSync(password, 8);
manager.addUser( manager.addUser(
name, name,
hash hash
); );
console.log("Added '" + name + "'."); console.log("User '" + name + "' created:");
console.log(""); 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) { module.exports = function(irc, network) {
var client = this; var client = this;
var self = false;
irc.on("nick", function(data) { irc.on("nick", function(data) {
var self = false;
if (data["new"] == irc.me) { if (data["new"] == irc.me) {
var lobby = network.channels[0]; var lobby = network.channels[0];
var msg = new Msg({ var msg = new Msg({