Browse Source

clean args before proceeding to delete the ban

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
b5ea4fb24d
  1. 5
      pyweb/mumble/views.py

5
pyweb/mumble/views.py

@ -301,7 +301,10 @@ def removeBan( request, server, bandata ):
if "addrstr" in bandata:
del bandata["addrstr"]
bandata["address"] = tuple(bandata["address"])
return srv.removeBan( **bandata )
cleanargs = {}
for kw in bandata:
cleanargs[str(kw)] = bandata[kw]
return srv.removeBan( **cleanargs )
@EXT_DIRECT_PROVIDER.register_method( "Mumble" )

Loading…
Cancel
Save