Last active
August 28, 2017 13:10
-
-
Save Mortimal/7eb5cd1af702d11c860a0b31160f9240 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Globals qw(%config); | |
use Plugins; | |
return unless | |
Plugins::register('accinwin', 'Add account name to window title', \&on_unload); | |
my $hooks = Plugins::addHooks( | |
['mainLoop::setTitle', \&onSetTitle], | |
); | |
sub on_unload { | |
Plugins::delHook($hooks); | |
} | |
sub onSetTitle{ | |
$_[1]->{return} = $config{username} ." | ".$_[1]->{return}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment