Merge pull request #283 from fbm-static/patch/02

fix commands magically being removed
This commit is contained in:
Mattias Erming 2014-11-14 00:22:01 +01:00
commit c3c2b5487c
2 changed files with 12 additions and 9 deletions

View file

@ -173,6 +173,7 @@ Client.prototype.connect = function(args) {
password: args.password,
username: username,
realname: realname,
commands: args.commands
});
network.irc = irc;

View file

@ -12,6 +12,7 @@ function Network(attr) {
port: 6667,
tls: false,
password: "",
commands: [],
username: "",
realname: "",
channels: [],
@ -41,7 +42,8 @@ Network.prototype.export = function() {
"tls",
"password",
"username",
"realname"
"realname",
"commands"
]);
network.nick = (this.irc || {}).me;
network.join = _.pluck(