Skip to content

Instantly share code, notes, and snippets.

@Mortimal Mortimal/
Last active Aug 28, 2017

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 {
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.