Skip to content

Commit

Permalink
Merge pull request #184 from DeviousNull/fix-unboss-with-symbols
Browse files Browse the repository at this point in the history
Fix `!unboss` silently failing for usernames containing symbols
  • Loading branch information
DeviousNull authored Oct 13, 2024
2 parents 82a3bd6 + acc3ffb commit 1057598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/plugins/barmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ def hUnboss(source, user, params, checkOnly):
if params[0] == '*':
callPerlFunction("hBoss", "battle", user, [], False) # Just use the SPADS handler
else:
perl.eval("delete $::bosses{" + params[0] + "};")
perl.eval("delete $::bosses{'" + params[0] + "'};")
spads.broadcastMsg("Boss mode disabled for %s (by %s)" % (params[0], user))

newBosses = "" + ','.join(spads.getBosses())
Expand Down

0 comments on commit 1057598

Please sign in to comment.