Skip to content

Commit

Permalink
correctly pluralize user(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 5, 2009
1 parent 1245812 commit df2df9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.js
Expand Up @@ -7,7 +7,9 @@ var CONFIG = { debug: false
var nicks = [];

function updateUsersLink ( ) {
$("#usersLink").text(nicks.length.toString() + " users");
var t = nicks.length.toString() + " user";
if (nicks.length != 1) t += "s";
$("#usersLink").text(t);
}

function userJoin(nick, timestamp) {
Expand Down

0 comments on commit df2df9d

Please sign in to comment.