how can i get the tools to work to make admin in chat room and clear messages in chat
Help Needed
Collapse
X
-
madtaz14Tags: None
-
madtaz14 -
madtaz14 -
Zombie
write a code to truncate the table in which chat messeges get stored thats all i can help in this
Comment
-
linkrx7
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 ");
}
Comment

Comment