diff --git a/commands.js b/commands.js index db79a62..ec6ef3e 100644 --- a/commands.js +++ b/commands.js @@ -17,7 +17,7 @@ function tokenize(msg) { } -cmd.dispatch = function (packet, dispatcher) { +cmd.dispatch = function (dispatcher, packet) { var tokens = tokenize(packet.message), name = tokens[0]; @@ -47,7 +47,7 @@ cmd.prv.auth = function (tokens, packet) { } if (tokens[1] !== correctPass) { - config.network.send( + packet.network.send( irc.outbound.say(packet.sender, 'Invalid password.') ); } diff --git a/config.json b/config.json index 348db30..4d1b779 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "server": "irc.freenode.net", + "server": "niven.freenode.net", "port": "6667", "nick": "mutalirc", "owner": "guidj0s", diff --git a/mutalirc.js b/mutalirc.js index 338bf0a..30e1377 100644 --- a/mutalirc.js +++ b/mutalirc.js @@ -77,4 +77,3 @@ function handleMessage(dispatcher, packet) { cmd.dispatch(dispatcher, packet); } -