]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- adjust for memory patch
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 29 Dec 2005 23:21:47 +0000 (23:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fix channels parsing

Changed files:
    eventum-irc-config.patch -> 1.11

eventum-irc-config.patch

index 91fda6d632cd6174136c50e1f31c73e41ced76c1..a0adb44bf4626732b12a90f618719c1418af7d74 100644 (file)
@@ -1,16 +1,5 @@
 --- eventum-1.6.1/misc/irc/bot.php.orig        2005-09-17 17:28:04.000000000 +0300
 +++ eventum-1.6.1/misc/irc/bot.php     2005-09-17 17:49:09.000000000 +0300
-@@ -27,8 +27,9 @@
- //
- // @(#) $Id$
- //
-+require_once('/etc/webapps/eventum/core.php');
-+include_once('/etc/webapps/eventum/irc.php');
--include_once("../../config.inc.php");
- include_once(APP_INC_PATH . "db_access.php");
- include_once(APP_INC_PATH . "class.auth.php");
- include_once(APP_INC_PATH . "class.lock.php");
 @@ -38,22 +39,19 @@
  
  ini_set("memory_limit", "256M");
@@ -40,7 +29,7 @@
 +$channels = array();
 +foreach ($irc_channels as $proj => $chan) {
 +    $proj_id = Project::getID($proj);
-+    $channels[$proj_id] = $chan;
++    $channels[$proj_id] = is_array($chan) ? $chan : array($chan);
 +}
  
  // ============================================
 -?>
 \ No newline at end of file
 +?>
+--- eventum-1.7.0/misc/irc/bot.php~    2005-12-30 00:22:37.000000000 +0200
++++ eventum-1.7.0/misc/irc/bot.php     2005-12-30 00:23:17.000000000 +0200
+@@ -31,6 +31,7 @@
+ ini_set("memory_limit", "256M");
+ include_once("../../config.inc.php");
++include_once('/etc/webapps/eventum/irc.php');
+ include_once(APP_INC_PATH . "db_access.php");
+ include_once(APP_INC_PATH . "class.auth.php");
+ include_once(APP_INC_PATH . "class.lock.php");
This page took 0.072652 seconds and 4 git commands to generate.