Miscellany
public text v1 · immutable<?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;
}
}
}
?>