]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-irc-config.patch
- undos the patches
[packages/eventum.git] / eventum-irc-config.patch
CommitLineData
eb77a5f1
ER
1--- ../BUILD/eventum-1.4/misc/irc/bot.php 2005-01-05 01:06:16.000000000 +0200
2+++ a/misc/irc/bot.php 2005-01-18 16:09:13.000000000 +0200
3@@ -52,10 +52,12 @@
71c6fb06
ER
4 exit;
5 }
6
7+include '/etc/eventum/irc.php';
8+
9 // SETUP: need to change the project name in here
10 $channels = array(
11 Project::getID('Default Project') => array(
12- '#issues',
13+ $irc_default_channel,
14 )
15 );
16
eb77a5f1 17@@ -355,9 +357,8 @@
71c6fb06
ER
18 $irc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^!?list-clocked-in', $bot, 'listClockedInUsers');
19 $irc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^!?list-quarantined', $bot, 'listQuarantinedIssues');
20
21-
22-$irc->connect('localhost', 6667);
23-$irc->login('EventumBOT', 'EventumBOT', 0, 'EventumBOT');
24+$irc->connect($irc_host, $irc_port);
25+$irc->login($irc_nick, $irc_realname, 0, $irc_username);
26 foreach ($channels as $prj_id => $channel_list) {
27 $irc->join($channel_list);
28 }
eb77a5f1 29@@ -366,4 +367,4 @@
71c6fb06
ER
30
31 // release the lock
32 Lock::release('irc_bot');
eb77a5f1
ER
33-?>
34\ No newline at end of file
71c6fb06 35+?>
This page took 0.038079 seconds and 4 git commands to generate.