tal             Thu Jan 30 13:52:30 2003 EDT

  Modified files:              
    /embed/php-irssi    php-core.c 
  Log:
  Set the include path to irssi's scripts dirs on startup
  
  
Index: embed/php-irssi/php-core.c
diff -u embed/php-irssi/php-core.c:1.4 embed/php-irssi/php-core.c:1.5
--- embed/php-irssi/php-core.c:1.4      Thu Jan 30 07:51:30 2003
+++ embed/php-irssi/php-core.c  Thu Jan 30 13:52:29 2003
@@ -14,7 +14,7 @@
   +----------------------------------------------------------------------+
   | Author: Wez Furlong <[EMAIL PROTECTED]>                                    |
   +----------------------------------------------------------------------+
-  $Id: php-core.c,v 1.4 2003/01/30 12:51:30 wez Exp $
+  $Id: php-core.c,v 1.5 2003/01/30 18:52:29 tal Exp $
 */
 #define MODULE_NAME "php/core"
 #include "common.h"
@@ -121,8 +121,6 @@
 
        /* register the irssi "extension" */
        zend_startup_module(&php_irssi_module_entry);
-
-       
 }
 
 static void fini_php(void)
@@ -204,7 +202,9 @@
        signal_add("php error", (SIGNAL_FUNC)error_handler);
 
        command_bind("php", NULL, (SIGNAL_FUNC)cmd_php);
-
+       
+       php_eval_string("php/irssi:init", "set_include_path('%s/scripts:%s');", 
+get_irssi_dir(), SCRIPTDIR);
+       
        if (irssi_init_finished) {
                /* if the module is being loaded manually execute autorun directly */
                do_autorun();



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to