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) {
|
||||
Logger.errlog.log("Large chandump detected: " + self.uniqueName +
|
||||
" (" + 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 " +
|
||||
"assistance in restoring it.");
|
||||
self.error = true;
|
||||
|
@ -218,7 +218,7 @@ Channel.prototype.loadState = function () {
|
|||
} else {
|
||||
Logger.errlog.log("Failed to open channel dump " + self.uniqueName);
|
||||
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.emit("ready");
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ Channel.prototype.loadState = function () {
|
|||
} catch (e) {
|
||||
self.error = true;
|
||||
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");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue