PlusEMU command crash

OctaveClef

New Member
Sep 9, 2016
3
0
Hi,

I am using PlusEMU Haboon Edit and when I try to type the :commands command the client crashes and redirects me to the me page. I am using PRODUCTION-201610312204-296063264. No errors appear in the debug console on the emulator or in Google Chrome.
 

OctaveClef

New Member
Sep 9, 2016
3
0
Is that command in the permissions_commands table in your database?
Hello,

No it is not in there. But looking at the source code for the ":commands" command it doesn't require a permission everyone has access to it.

Code:
if (Message == _prefix + "commands")
            {
                StringBuilder List = new StringBuilder();
                List.Append("This is the list of commands you have available:\n\n");
                List.Append("-----------------------------------------------------------------\n\n");
                foreach (var CmdList in _commands.ToList())
                {
                    if (!string.IsNullOrEmpty(CmdList.Value.PermissionRequired))
                    {
                        if (!Session.GetHabbo().GetPermissions().HasCommand(CmdList.Value.PermissionRequired))
                            continue;
                    }

                    List.Append(":" + CmdList.Key + " " + CmdList.Value.Parameters + " - " + CmdList.Value.Description + "\n\n");
                }
                Session.SendMessage(new MOTDNotificationComposer(List.ToString()));
                return true;
            }
 

Users who are viewing this thread

Top