Reduced & updated dependencies.
By default, messages larger than 2.000 characters (sent via tells) get sent via slaves, if these exist. Fixes #3
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import json
|
||||
import math
|
||||
|
||||
from core.buddy_service import BuddyService
|
||||
@@ -165,7 +166,7 @@ class RIAdminController:
|
||||
description="take the RI from another bot")
|
||||
def ritake(self, request, raiders: str):
|
||||
users = raiders.split(",")
|
||||
if request.sender.char_id not in eval(self.setting_service.get_value('riadmin_network')):
|
||||
if request.sender.char_id not in json.loads(self.setting_service.get_value('riadmin_network')):
|
||||
return
|
||||
for user in users:
|
||||
char = self.character_service.resolve_char_to_id(user.strip())
|
||||
@@ -277,7 +278,7 @@ class RIAdminController:
|
||||
def riadmin_create(self, _, _2, raid_instance_name, bot):
|
||||
if not bot.char_id:
|
||||
return self.getresp("global", "char_not_found", {"char": bot.name})
|
||||
if bot.char_id not in eval(self.setting_service.get_value('riadmin_network')):
|
||||
if bot.char_id not in json.loads(self.setting_service.get_value('riadmin_network')):
|
||||
return "Bot not valid: please ask an Administrator to verify it first."
|
||||
raid_instance = self.get_raid_instance(raid_instance_name)
|
||||
if raid_instance:
|
||||
|
||||
Reference in New Issue
Block a user