(message: string, params: any[] = [])
| 180 | if (!this.user.hasPriv(...args)) throw new PrivilegeError(...args); |
| 181 | }, |
| 182 | progress(message: string, params: any[] = []) { |
| 183 | Hydro.model.message.sendInfo(this.user._id, JSON.stringify({ message, params })); |
| 184 | }, |
| 185 | async limitRate( |
| 186 | op: string, periodSecs: number, maxOperations: number, defaultKey = system.get('limit.by_user') ? '{{ip}}@{{user}}' : '{{ip}}', |
| 187 | ) { |