Help Needed
Started on the old forum in May 2007 · view the original in the archive · old links redirect here
write a code to truncate the table in which chat messeges get stored thats all i can help in this External image (may be gone)
elsif ($command =~ /^/clear/i && AdminLevels::CanEraseChat($uid)) {
$msg2 = clear_illegal_user_chars($msg2);
if (AdminLevels::CanEraseChat($uid, $msg2) && clear_user_chat($msg2)) {
new_msg($rid,"$msg2 Has Shut Up Now! HaHaHa...","X",$uid,0);
}
Location("index.cgi","a=r4&m=m1&rid=$rid&rand=$now");
}
# CREATE ADMIN (ADMIN):
elsif ($command =~ /^/new/i) {
CHECK: {
last CHECK unless $msg2 =~ /^(\S+)\s+(.*)$/;
my ($recipient, $level) = ($1, $2);
$recipient = clear_illegal_user_chars($recipient);
last CHECK unless AdminLevels::CanMakeAdmin($uid, $recipient, $level);
my $msgid = create_admin($recipient, $level);
new_msg($rid, "$recipient is now " . AdminLevels::GetLevelNameByUserName($recipient) . "!", "X", $uid, 0)
if ($msgid);
}
Location("index.cgi","a=r4&m=m1&rid=$rid&rand=$now");
}