Skip to content

Instantly share code, notes, and snippets.

@Mortimal
Last active August 28, 2017 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mortimal/7eb5cd1af702d11c860a0b31160f9240 to your computer and use it in GitHub Desktop.
Save Mortimal/7eb5cd1af702d11c860a0b31160f9240 to your computer and use it in GitHub Desktop.
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