Skip to content

Commit

Permalink
Fixed new aliases not registering at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckBoss committed Jun 8, 2020
1 parent 18cbe7d commit 642d6e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions JJMumbleBot/plugins/core/core_commands/core_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,16 @@ def process(self, text):
return
alias_name = message_parse[1]

if aliases.set_alias(alias_name, message_parse[2]):
if aliases.add_to_aliases(alias_name, message_parse[2]):
GS.gui_service.quick_gui(
f"Registered alias: [{alias_name}] - [{message_parse[2]}]",
f"Registered new alias: [{alias_name}] - [{message_parse[2]}]",
text_type='header',
box_align='left',
ignore_whisper=True,
user=GS.mumble_inst.users[text.actor]['name'])
elif aliases.add_to_aliases(alias_name, message_parse[2]):
elif aliases.set_alias(alias_name, message_parse[2]):
GS.gui_service.quick_gui(
f"Registered new alias: [{alias_name}] - [{message_parse[2]}]",
f"Registered alias: [{alias_name}] - [{message_parse[2]}]",
text_type='header',
box_align='left',
ignore_whisper=True,
Expand Down

0 comments on commit 642d6e3

Please sign in to comment.