Moved the coloring from <color>[text]<end> to <color>[test]</color>, which allows the discord module to reparse the messages more accurately
This commit is contained in:
@@ -85,11 +85,11 @@ class OrgBanController(BaseModule):
|
||||
elif len(orgs) > 1:
|
||||
blob = "Your search had multiple results; please pick an org:<br>"
|
||||
for org in orgs:
|
||||
blob += "[%s] <highlight>%s<end> (<highlight>%s<end>) <%s>%s<end> [<highlight>%s<end> " \
|
||||
blob += "[%s] <highlight>%s</highlight> (<highlight>%s</highlight>) <%s>%s</%s> [<highlight>%s</highlight> " \
|
||||
"members]<br><pagebreak>" \
|
||||
% (self.text.make_chatcmd("Unban", "/tell <myname> orgban remove %s" % org.org_id),
|
||||
# self.text.make_chatcmd("More", "/tell <myname> org info %s" % org.org_id),
|
||||
org.org_name, org.org_id, org.faction.lower(), org.faction, org.member_count)
|
||||
org.org_name, org.org_id, org.faction.lower(), org.faction, org.faction.lower(), org.member_count)
|
||||
return ChatBlob("Pick an Org", blob)
|
||||
|
||||
@command(command="orgban", params=[Const("add", is_optional=True), Int("Organisation"),
|
||||
@@ -119,10 +119,10 @@ class OrgBanController(BaseModule):
|
||||
elif len(orgs) > 1:
|
||||
blob = "Your search had multiple results; please pick an org:<br>"
|
||||
for org in orgs:
|
||||
blob += "[%s] <highlight>%s<end> (<highlight>%s<end>) <%s>%s<end> [<highlight>%s<end> " \
|
||||
blob += "[%s] <highlight>%s</highlight> (<highlight>%s</highlight>) <%s>%s</%s> [<highlight>%s</highlight> " \
|
||||
"members]<br><pagebreak>" \
|
||||
% (self.text.make_chatcmd("Add Ban", "/tell <myname> orgban add %s" % org.org_id),
|
||||
org.org_name, org.org_id, org.faction.lower(), org.faction, org.member_count)
|
||||
org.org_name, org.org_id, org.faction.lower(), org.faction, org.faction.lower(), org.member_count)
|
||||
return ChatBlob("Pick an Org", blob)
|
||||
|
||||
def fetch_single(self, org_id, sender: object):
|
||||
|
||||
Reference in New Issue
Block a user