Minor changes
This commit is contained in:
parent
044b61be29
commit
216030710a
2
client/js/libs.min.js
vendored
2
client/js/libs.min.js
vendored
File diff suppressed because one or more lines are too long
@ -2,7 +2,7 @@ function escape(text) {
|
|||||||
var e = {
|
var e = {
|
||||||
"<": "<",
|
"<": "<",
|
||||||
">": ">",
|
">": ">",
|
||||||
"'": """
|
"'": "'"
|
||||||
};
|
};
|
||||||
return text.replace(/[<>']/g, function (c) {
|
return text.replace(/[<>']/g, function (c) {
|
||||||
return e[c];
|
return e[c];
|
||||||
|
@ -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,
|
||||||
|
@ -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": {
|
||||||
|
@ -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("");
|
||||||
|
}
|
||||||
|
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user