Location: PHPKode > projects > MpiBot > modules/AutoJoin.mod.php
<?php
	/* (C) Copyright 2004 Armond Carroll.  All rights reserved.
	   Distributed under the BSD License.  Please see license.txt for license,
	   or http://www.opensource.org/licenses/bsd-license.php.

	   http://mpibot.sourceforge.net

	   Purpose of this file:
	   	To provide a basic module for joining channels on connect.

	   File Version: 1.0
	   Last Modified: ????
	*/

	final class AutoJoin extends BaseModule {
		public function on_connect() {
			global $bot;
			foreach($bot->cfg['AutoJoin']['Channels'] as $chan) {
				$bot->join($chan);
			}
		}
	}
?>
Return current item: MpiBot