jhthorsen / mojo-irc

IRC Client for the Mojo IOLoop
14 stars 12 forks source link

Suggestion: Change "name" to include $0 #26

Closed jhthorsen closed 8 years ago

jhthorsen commented 8 years ago

I wonder if we should change the default "name" attribute to include the application name. Something like this:

has name => sub {
  my $app = basename $0;
  return "Mojo-IRC/$app";
};
marcusramberg commented 8 years ago

This change seems a little magic to me. I think it should probably be the responsibility of the app to decide what name to present.

jhthorsen commented 8 years ago

Thanks!