Notify moderators when a new user joins

This commit is contained in:
calzoneman 2013-06-18 00:26:44 -04:00
parent 449d01180a
commit 6f43a7efdc
6 changed files with 51 additions and 31 deletions

View file

@ -185,6 +185,12 @@ html, body {
color: #888888;
}
.server-whisper {
font-style: italic;
color: #888888;
font-size: 8pt;
}
.spoiler {
color: #000000;
background-color: #000000;

View file

@ -21,6 +21,9 @@
clickHandler("#show_cssedit", "#cssedit");
clickHandler("#show_jsedit", "#jsedit");
clickHandler("#show_banlist", "#banlist");
$("#show_banlist").click(function() {
socket.emit("requestBanlist");
});
clickHandler("#show_loginhistory", "#loginhistory");
$("#show_loginhistory").click(function() {
socket.emit("requestLoginHistory");

View file

@ -647,6 +647,7 @@ function handlePermissionChange() {
}
if(CLIENT.rank >= 2) {
$("#channelsettingswrap3").show();
if($("#channelsettingswrap").html() == "")
$("#channelsettingswrap").load("channeloptions.html");
/* update channel controls */
@ -661,11 +662,12 @@ function handlePermissionChange() {
}
else {
$("#channelsettingswrap").html("");
$("#channelsettingswrap3").hide();
}
setVisible("#userpltoggle", CLIENT.rank >= 1);
setVisible("#userpltogglewrap", CLIENT.rank >= 1);
setVisible("#playlisttoggle", hasPermission("playlistadd"));
setVisible("#playlisttogglewrap", hasPermission("playlistadd"));
$("#queue_next").attr("disabled", !hasPermission("playlistnext"));
setVisible("#qlockbtn", CLIENT.rank >= 2);
@ -937,6 +939,9 @@ function formatChatMessage(data) {
if(data.msgclass == "drink" || data.msgclass == "shout") {
skip = false;
}
if(data.msgclass == "server-whisper") {
skip = true;
}
LASTCHATNAME = data.username;
LASTCHATTIME = data.time;
var div = $("<div/>");
@ -944,6 +949,8 @@ function formatChatMessage(data) {
var time = $("<span/>").addClass("timestamp").appendTo(div);
var timestamp = new Date(data.time).toTimeString().split(" ")[0];
time.text("["+timestamp+"] ");
if(data.msgclass != "greentext" && data.msgclass != "drink")
time.addClass(data.msgclass);
}
var name = $("<span/>");
if(!skip) {

View file

@ -115,7 +115,7 @@
</div>
</div>
<!-- user playlists -->
<div class="well well-small span12 row-fluid">
<div class="well well-small span12 row-fluid" id="userpltogglewrap">
<div class="span12 pointer" id="userpltoggle">
<i class="icon-plus pull-left"></i>
<p>Show Playlist Manager</p>
@ -141,7 +141,7 @@
<!-- electric boogaloo -->
<div class="span12" id="queue_align2"></div>
<!-- playlist controls -->
<div class="well well-small span12 row-fluid">
<div class="well well-small span12 row-fluid" id="playlisttogglewrap">
<div class="span12 pointer" id="playlisttoggle">
<i class="icon-plus pull-left"></i>
<p>Show Playlist Controls</p>