[Squalk-cvs] ircbot ircbot.cfg,1.3,1.4 ircbot.php,1.4,1.5
Status: Inactive
Brought to you by:
mkavanagh
From: Matthew K. <mka...@us...> - 2005-09-27 19:29:50
|
Update of /cvsroot/squalk/ircbot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31073 Modified Files: ircbot.cfg ircbot.php Log Message: hurrrrrrrrrrr Index: ircbot.php =================================================================== RCS file: /cvsroot/squalk/ircbot/ircbot.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ircbot.php 1 May 2004 14:06:51 -0000 1.4 --- ircbot.php 27 Sep 2005 19:29:36 -0000 1.5 *************** *** 24,32 **** --- 24,45 ---- require_once(LIB_PATH . 'class_irc.php'); + if(!extension_loaded('sockets')) { + if(!@dl('sockets.so')) { + panic('You know, we do need INTERNETS for this. Hurr.'); + } + else { + echo "Loaded sockets extension\n"; + } + } + if(isset($_SERVER['REMOTE_HOST'])) { panic('Will not run in web environment!'); } + else { + echo "Not running in a web environment, good\n"; + } $config = get_config('ircbot.cfg'); + echo "Got configuration\n"; $irc = new irc(); *************** *** 36,43 **** --- 49,58 ---- foreach($config['modules'] as $module) { include_once($module); + echo "Included module \"$module\"\n"; } foreach($config['channels'] as $channel) { $irc->join($channel); + echo "Joined channel \"$channel\"\n"; } *************** *** 46,48 **** } } ! ?> \ No newline at end of file --- 61,63 ---- } } ! ?> Index: ircbot.cfg =================================================================== RCS file: /cvsroot/squalk/ircbot/ircbot.cfg,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ircbot.cfg 1 May 2004 14:06:51 -0000 1.3 --- ircbot.cfg 27 Sep 2005 19:29:36 -0000 1.4 *************** *** 7,14 **** nickname = "ptibot" [server_section] ! server = "irc.freenode.net" port = 6667 [channel_section] ! channels = "|#ptibot|#phpbbchat|" [module_section] ! modules = "|modules/log.php|modules/misc.php|modules/lesbian.php|modules/attack.php|" \ No newline at end of file --- 7,14 ---- nickname = "ptibot" [server_section] ! server = "irc.brutix.com" port = 6667 [channel_section] ! channels = "|#ptibot" [module_section] ! modules = "|modules/log.php|modules/misc.php|modules/lesbian.php|modules/attack.php|modules/sleep.php" |