mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
remove tilde prefix for command usage
This commit is contained in:
parent
0ebdb2dbde
commit
2570eb99a6
8
run.js
8
run.js
@ -329,6 +329,14 @@ DBot.prototype.reloadModules = function() {
|
||||
this.commands[cName.substring(1)] = command;
|
||||
}
|
||||
}, this);
|
||||
|
||||
_.each(this.usage, function(command, cName) {
|
||||
if(cName.charAt(0) == '~') {
|
||||
delete this.usage[cName];
|
||||
this.usage[cName.substring(1)] = command;
|
||||
}
|
||||
}, this);
|
||||
|
||||
}.bind(this));
|
||||
|
||||
this.save();
|
||||
|
Loading…
Reference in New Issue
Block a user