Skip to content

Instantly share code, notes, and snippets.

@Mortimal Mortimal/accinwin.pl
Last active Aug 28, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.