Report to all admins!

Author Topic: Report to all admins!  (Read 8296 times)

Report to all admins!

Just do /report stuff here to report to any admin/super admin.
/ReportTimeout for super admins to change the timeout in milliseconds.

/AdminReport - Reports to super admins. (Admins only)
/SuperReport - Reports to the host. (Super admins only)
Logs can be seen in "config/server/Logs/Reports/*"

Also has a special log writer that could be useful in other logging mods.

Credits:
  • Xalos
  • Visolator

Dropbox
« Last Edit: April 19, 2014, 04:41:10 PM by Advanced Bot »

while((%temp = stripMLControlChars(%text)) !$= %text) %text = %temp;

Why are you using a while statement for this?

while((%temp = stripMLControlChars(%text)) !$= %text) %text = %temp;

Why are you using a while statement for this?

%text = stripMLControlChars(%text);

<just:<just:right>right>Your single strip does not work.

Note that admins/super admins cannot report.
Why add this restriction?

Why add this restriction?
Why would you want to report when you are the administrator

Why would you want to report when you are the administrator

Ban restriction on admins

/report up one level to a super-admin


IP ban restriction on super-admins

/report up one level to the host

%text = stripMLControlChars(%text);

<just:<just:right>right>Your single strip does not work.

Who would do this though..

Who would do this though..

By that logic, stripping control characters is unnecessary in the first place, because no one would ever try to break the server chat, right? RIGHT?!

I made this before but when an admin used the command it was an admin chat, you should do that.

%text = stripMLControlChars(%text);

<just:<just:right>right>Your single strip does not work.

I remember doing just stripMLControlChars and it wouldn't let me bypass it by doing what you did.

I remember doing just stripMLControlChars and it wouldn't let me bypass it by doing what you did.
Yeah, I feel like stripMLControlChars was updated at some point to deal with that. Trying to inlay multiple tags didn't work last time I tried.

Yeah, I feel like stripMLControlChars was updated at some point to deal with that. Trying to inlay multiple tags didn't work last time I tried.

...huh. It has been.


Hey, I helped >:(
This is code credits.. Lol. What exactly did you work on?

This is code credits.. Lol. What exactly did you work on?


Code: [Select]
function servercmdreport(%client, %c1, %c2, %c3, %c4, %c5, %c6, %c7, %c8, %c9, %c10, %c11, %c12, %c13, %c14, %c15, %c16, %c17, %c18, %c19, %c20)
{
%text="";
for(%j=1;%j<=20;%j++)
{
%text = %text SPC %c[%j];
}
messageclient(%client,'',"\c5You reported\c4:"@%text);

for(%i=0;%i<clientGroup.getcount();%i++)
{
%b=clientgroup.getobject(%i);
if(%b.isAdmin)
{
messageclient(%b,'',"\c5"@%client.name@" reports\c4:"@%text);
}
}
}

https://www.dropbox.com/s/k1rbnotec6a2fki/Server_Report.zip