mirror of https://github.com/calzoneman/sync.git
Fix setMotd
This commit is contained in:
parent
39e26e8afd
commit
c9d4efdd15
|
@ -184,7 +184,7 @@ Channel.prototype.tryLoadState = function () {
|
||||||
if (mb > 1) {
|
if (mb > 1) {
|
||||||
Logger.errlog.log("Large chandump detected: " + self.uniqueName +
|
Logger.errlog.log("Large chandump detected: " + self.uniqueName +
|
||||||
" (" + mb + " MiB)");
|
" (" + mb + " MiB)");
|
||||||
self.setMOTD("Your channel file has exceeded the maximum size of 1MB " +
|
self.setMotd("Your channel file has exceeded the maximum size of 1MB " +
|
||||||
"and cannot be loaded. Please ask an administrator for " +
|
"and cannot be loaded. Please ask an administrator for " +
|
||||||
"assistance in restoring it.");
|
"assistance in restoring it.");
|
||||||
self.error = true;
|
self.error = true;
|
||||||
|
@ -218,7 +218,7 @@ Channel.prototype.loadState = function () {
|
||||||
} else {
|
} else {
|
||||||
Logger.errlog.log("Failed to open channel dump " + self.uniqueName);
|
Logger.errlog.log("Failed to open channel dump " + self.uniqueName);
|
||||||
Logger.errlog.log(err);
|
Logger.errlog.log(err);
|
||||||
self.setMOTD("Channel state load failed. Contact an administrator.");
|
self.setMotd("Channel state load failed. Contact an administrator.");
|
||||||
self.error = true;
|
self.error = true;
|
||||||
self.emit("ready");
|
self.emit("ready");
|
||||||
}
|
}
|
||||||
|
@ -297,7 +297,7 @@ Channel.prototype.loadState = function () {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
self.error = true;
|
self.error = true;
|
||||||
Logger.errlog.log("Channel dump load failed (" + self.uniqueName + "): " + e);
|
Logger.errlog.log("Channel dump load failed (" + self.uniqueName + "): " + e);
|
||||||
self.setMOTD("Channel state load failed. Contact an administrator.");
|
self.setMotd("Channel state load failed. Contact an administrator.");
|
||||||
self.emit("ready");
|
self.emit("ready");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue