rapid7/metasploit-framework — pull request #3428 by Meatballs1 (2014-06-06 22:06:07+00:00)
Title: Give deprecated warning on module load

By overriding init_ui we can print a warning on module load, and it should be visible on all UIs as it isn't using stdout etc. This is preferable till generate or setup...
```
msf exploit(psh_web_delivery) > use payload/windows/meterpreter/reverse_ipv6_https
[!] ************************************************************************
[!] * The module windows/meterpreter/reverse_ipv6_https is deprecated! *
[!] * It will be removed on or about 2014-07-30 *
[!] * Use windows/meterpreter/reverse_https instead *
[!] ************************************************************************
```