Fix setMotd

This commit is contained in:
calzoneman 2014-02-16 02:13:53 -06:00
parent 39e26e8afd
commit c9d4efdd15
1 changed files with 3 additions and 3 deletions

View File

@ -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");
}
});