Code: self.setup = function () { /* prevent the build bar from scrolling. */ function sqelch(e) { e.preventDefault(e); } if (window.addEventListener) window.addEventListener('DOMMouseScroll', sqelch, false); window.onmousewheel = document.onmousewheel = sqelch;

So with Uber constantly ignoring the dire need for a global chat system this is the 2nd time I felt inclinded to tackle the issue to at least try and create something that can replace it at least a little. The old PA Stats irc button was clunky, this is now about making it much more userfriendly and integrate it as perfectly as possible with PA's existing social features, so I am trying to show my vision of what a good chat implementation might look like. @Sekuraz pointed me at the fact that Uber's xmpp backend, that is used for the private chats, is in fact fully capable of everything xmpp can do. (thanks!) This includes multiuser chatrooms. The only thing that is missing is the UI part inside of PA. Within the next few days this mod will replace the PA Stats IRC button. And to calm some people: PA Stats will include an option to disable the chat, if one wants to.That's where this mod comes in: It extends the existing uberbar to use Uber's xmpp backend for global chatrooms (fun fact: that server serves chats for toyrush as well as for SMNC, just PA is left out :S). Features so far:This ise the default chatroom. The chatwindow marks normal users green, admins red and moderators blue. Within the text your own name is made white. The displayed time is formatted according to your local settings. It loads the last 100 messags from the xmpp server as chat history.The window can be resized to be wider or smaller by dragging the left border:The channel "halcyon" is automatically joined and opens like this:the chat supports auto complete of names via tab:press tab =>If you have PA minimized and somebody writes your name in the chat PA will do this:You can join other channels as well:If the channel does not exist it is created and you are made the admin of the channel.Currently moderators and admins cannot actually do anything. To moderate channels (kick and ban users) it however is possible to use for example pidgin, though logging in works via rather cryptical user-names and session ids.You can right click names in the channel to get the "contact" contextmenu:before pushing it live I plan to add 2 more features:- mark ingame users as "ingame"- a command /announcelobby that will allow you to write a message that provides a clickable link for other users to join the public lobby you are in right now.the code is on github: https://github.com/pamods/PAChat/tree/master I was wondering why I cannot use the scrollwheel to scroll the chatwindows. The reason is because there is code like this in the uberbar:Is that supposed to be there? "build bar"? removing it fixes scrollwheel scrolling and has no negative effects as far as I can tell.