megawac / qwebirc-enhancements

Rich and intuitive browser IRC client.
http://justplay.tf/irc
Other
22 stars 10 forks source link

Ability to hide status window #66

Open guzzlefry opened 9 years ago

guzzlefry commented 9 years ago

Add a configuration option to hide the status window from users.

I can probably wing this myself with some clues on where to look. I can't find the bit of code that creates the tab/window.

megawac commented 9 years ago

Status window is created in the IRCClient UI adapter when a client connects. Why don't you want the status window to appear?

guzzlefry commented 9 years ago

We've replaced a proprietary chat platform with an IRC-based one and would rather hide the status since it will probably confuse our users.

megawac commented 9 years ago

Makes sense. I'll be around tonight - ping me here or on GeeksIRC if theres any gotchas you run into

guzzlefry commented 9 years ago

Thanks, which channel would that be?

megawac commented 9 years ago

Join #brouhaha

megawac commented 9 years ago

Try something like this to close the Status window right after it opens

app.addEvent("login:once", function() {
    _.defer(function() {
         var statusWindow = app.getWindow(app.clients[0], qwebirc.lang.windowNames.status);
         statusWindow.close();
    });
});