All pastes #797050 Raw Edit

Miscellany

public text v1 · immutable
#797050 ·published 2007-11-25 18:38 UTC
rendered paste body
<?php
function mbot_load() 
{ 
    mb_SelfRegister(MB_EVENT_MSG_OUT, 0); 
} 
 
function mbe_MsgOut($cid, $body) 
{     
    if ($body[0] == '/') {
    	list($command,$count,$mssg)=explode(' ',$body,3);
	    
        $proto = mb_CGetProto($cid); 
        if (substr($proto, 0, 3) == "IRC") 
        { 
        } 
        else 
        { 
                while ($count > 0){ 
                    mb_MsgSend($cid, $mssg); 
                    $count--; 
                }
			 return 1;
        }         
    }     
} 
 
?>