Exemplo n.º 1
0
 protected override void CoreCommandLib(UUID fromUUID, bool from_master, string command, string arg, string signing_code)
 {
     if (CommandsInterface != null)
     {
         if (signing_code != "")
         {
             string raw       = "" + command + "" + arg + "" + myconfig.code + "";
             string hashcheck = helpers.GetSHA1(raw);
             if (hashcheck == signing_code)
             {
                 // signed commands
                 CommandsInterface.Call(command, arg);
             }
         }
         else if (from_master == true)
         {
             CommandsInterface.Call(command, arg);
         }
     }
 }
Exemplo n.º 2
0
 protected virtual void CallCommandLib(string command, string arg, UUID caller, string signed_with)
 {
     CommandsInterface.Call(command, arg, caller, signed_with);
 }