[Pkg-javascript-commits] [ltx] 96/469: echo_bot: relative require path

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit 7c2f11e3309ed140ff133ae185ea50fcdafddd9b
Author: Astro <astro at spaceboyz.net>
Date:   Mon Sep 6 21:10:59 2010 +0200

    echo_bot: relative require path
---
 examples/echo_bot.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/echo_bot.js b/examples/echo_bot.js
index 5970c5d..77eeb99 100644
--- a/examples/echo_bot.js
+++ b/examples/echo_bot.js
@@ -1,9 +1,8 @@
 /**
  * Echo Bot - the XMPP Hello World
  **/
-require.paths.push('../lib');
 var sys = require('sys');
-var xmpp = require('xmpp');
+var xmpp = require('../lib/xmpp');
 var argv = process.argv;
 
 if (argv.length != 4) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list