UNBAN <nick> can use cached whowas info to unset bans

The use of the whowas cache in userhost_unban() would never work, because it was passing 'args' as the channel
name which also included the window number.

Rework this substantially, including using lookup_channel() and set_display_target() in place of prepare_command().
This commit is contained in:
Kevin Easton
2017-02-25 00:34:58 +11:00
parent 3a5a489f25
commit 1fbafddc59
2 changed files with 52 additions and 29 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2.2]
* /UNBAN <nick> can use cached whowas info to unset bans. (caf)
* Unsetting CMDCHARS sets it back to the default. (caf)
* Fix a double-free bug when a window on an alternate screen queries an exec