]>
Commit | Line | Data |
---|---|---|
622e4f4b ER |
1 | --- ./misc/irc/bot.php 2005-01-05 01:06:16.000000000 +0200 |
2 | +++ ./misc/irc/bot.php 2005-01-18 16:09:13.000000000 +0200 | |
eb77a5f1 | 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); | |
09dce7d6 | 25 | +$irc->login($irc_nick, $irc_realname, 0, $irc_username, $irc_password); |
71c6fb06 ER |
26 | foreach ($channels as $prj_id => $channel_list) { |
27 | $irc->join($channel_list); | |
28 | } | |
622e4f4b ER |
29 | --- ./misc/irc/bot.php~ 2005-03-14 14:47:40.000000000 +0200 |
30 | +++ ./misc/irc/bot.php 2005-03-28 20:58:31.000000000 +0300 | |
31 | @@ -56,7 +56,7 @@ | |
71c6fb06 | 32 | |
622e4f4b ER |
33 | // SETUP: need to change the project name in here |
34 | $channels = array( | |
35 | - Project::getID('Default Project') => array( | |
36 | + Project::getID($irc_default_project) => array( | |
37 | $irc_default_channel, | |
38 | ) | |
39 | ); |