From ddc538b6a07aa88813c4b664ffbb4761a4eb000c Mon Sep 17 00:00:00 2001 From: Sam Nicholls Date: Sat, 5 Jan 2013 22:20:09 +0000 Subject: [PATCH] Report version after greload callbacks complete --- modules/admin/admin.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/admin/admin.js b/modules/admin/admin.js index ac2e7e6..962eda0 100644 --- a/modules/admin/admin.js +++ b/modules/admin/admin.js @@ -48,13 +48,12 @@ var admin = function(dbot) { exec("git submodule update", function (error, stdout, stderr) { event.reply(dbot.t('gpull')); commands.reload(event); + event.message = 'version'; + event.action = 'PRIVMSG'; + event.params = event.message.split(' '); + dbot.instance.emit(event); }.bind(this)); }.bind(this)); - - event.message = 'version'; - event.action = 'PRIVMSG'; - event.params = event.message.split(' '); - dbot.instance.emit(event); }, // Display commit information for part of dbot