All pastes #615352 Raw Edit

Someone

public php v1 · immutable
·published 2007-07-12 02:25 UTC
rendered paste body
<?php$module->registerModule( 'commands', 'commands' );class commands {        function commands() {                global $iBot;                if(preg_match( '/^!join\s(\#[a-z0-9_\@\&]+)$/', $iBot->get('msg'), $match )) {                        $iBot->execute( 'JOIN '. $match[1] );                }                if(preg_match( '/^!part\s(\#[a-z0-9_\@\&]+)\s*(.*)$/', $iBot->get('msg'), $match )) {                        $msg = empty( $match[2] ) ? '' : $match[2];                        $iBot->execute( 'PART '. $match[1] .' '. $iBot->makeMsg( $match[2] ));                }                if(preg_match( '/^!quit\s*(.*)$/', $iBot->get( 'msg' ), $match )) {                        $msg = empty( $match[1] ) ? '' : $match[1];                        $iBot->execute( 'QUIT '. $iBot->makeMsg( $msg ) );                }        }}?>