if your useing a function your not familiur with i suggest checking php.net, very useful
http://uk.php.net/preg_match
Pretty much anything im gona say about its in there anyway, the preg functions are always a bit confusieng due to regex with still often shows itself to be a pain in the ****
$userinput = "ban: bob";
if (preg_match("/ban: /i",$userinput )) {
// invoke ban script,
$ban = explode(" ", $ban);
$Persontoban =$ban['1']
// Banning script here
} else {
// Add the info normaly
}
Hope that quick crap helps![]()








Reply With Quote


