Skip to content

Instantly share code, notes, and snippets.

@smeghead
Created April 22, 2011 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smeghead/936592 to your computer and use it in GitHub Desktop.
Save smeghead/936592 to your computer and use it in GitHub Desktop.
ircに接続するためには、読み込む順番が関係あるらしい
--- plugins/pluginManager.js.org 2011-04-22 20:45:09.691124038 +0800
+++ plugins/pluginManager.js 2011-04-22 20:43:23.690968561 +0800
@@ -39,6 +39,7 @@
{
var files=fs.readdirSync('./plugins/core');
var self=this;
+ files.sort(); //sort filenames to read.
_.each(files,function(file){
if(self.isFile(fs.realpathSync('./plugins/core/'+file)))
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment