3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-28 05:32:50 +01:00

finish users rewrite

This commit is contained in:
reality 2013-06-22 17:19:04 +00:00
parent df1404b3ae
commit 39db5423df

View File

@ -3,7 +3,8 @@
* Description: Track known users
*/
var _ = require('underscore')._,
uuid = require('node-uuid');
uuid = require('node-uuid'),
async = require('async');
var users = function(dbot) {
@ -26,9 +27,8 @@ var users = function(dbot) {
}.bind(this),
'createChannel': function(server, name, callback) {
var id = uuid.v4();
this.db.create('channel_users', id, {
'id': id,
'id': uuid.v4(),
'server': server,
'name': name,
'users': []