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
7 +include '/etc/eventum/irc.php';
9 // SETUP: need to change the project name in here
11 Project::getID('Default Project') => array(
13 + $irc_default_channel,
18 $irc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^!?list-clocked-in', $bot, 'listClockedInUsers');
19 $irc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^!?list-quarantined', $bot, 'listQuarantinedIssues');
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);
32 Lock::release('irc_bot');
34 \ No newline at end of file