Page 1 of 1
[accinwin.pl] Adds acc name in the beginning of console name
Posted: 28 Aug 2017, 09:12
by Mortimal
Code: Select all
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};
}
in gist
https://gist.github.com/Mortimal/7eb5cd ... 31160f9240
Re: [accinwin.pl] Adds acc name in the beginning of console name
Posted: 29 Aug 2017, 13:33
by SkylorD
Amazing !
Re: [accinwin.pl] Adds acc name in the beginning of console name
Posted: 29 Aug 2017, 15:00
by c4c1n6kr3m1
why not edit customcaption plugin it's on needs-review
Re: [accinwin.pl] Adds acc name in the beginning of console name
Posted: 29 Aug 2017, 15:37
by Mortimal
that's why it is on forums but not in pull requests...
Re: [accinwin.pl] Adds acc name in the beginning of console name
Posted: 29 Aug 2017, 16:16
by Mortimal
ok but il revise that thx for info