X-Git-Url: http://git.scottworley.com/reliable-chat/blobdiff_plain/9878d03bc1ec4a37d501ee65b520630235cc86cf..a7a2c8b6c0d41519e516008ba2306c4a3948c40b:/webclient/rc.html

diff --git a/webclient/rc.html b/webclient/rc.html
index da5874a..4a956ea 100644
--- a/webclient/rc.html
+++ b/webclient/rc.html
@@ -61,6 +61,18 @@
 		font-size: 85%;
 		text-align: right;
 	}
+	.status {
+		color: #dd8;
+	}
+	.local.self {
+		color: #d8d;
+	}
+	.self {
+		color: #8d8;
+	}
+	.me {
+		color: #bbd;
+	}
 	.servercount {
 		margin-right: -0.5em;
 		font-size: 70%;
@@ -456,8 +468,13 @@
 					rcaddmessagetoUI({'Text': '-!- Your nick is already ' + rcnick(), 'ServerTimes': {}});
 					return;
 				}
-				message = "*** " + rcnick() + " is now known as " + rest;
-				rcsetnick(rest);
+				if (rest) {
+					message = "*** " + rcnick() + " is now known as " + rest;
+					rcsetnick(rest);
+				} else {
+					rcaddmessagetoUI({'Text': '-!- /nick requires an argument', 'ServerTimes': {}});
+					return;
+				}
 			} else {
 				rcaddmessagetoUI({'Text': '-!- No such command: ' + command, 'ServerTimes': {}});
 				return;