]> git.example.dev Git - binbsis50.git/commitdiff
removed unneeded return statements
authorLuigi Pinca <luigipinca@gmail.com>
Mon, 23 Mar 2015 09:02:23 +0000 (10:02 +0100)
committerLuigi Pinca <luigipinca@gmail.com>
Mon, 23 Mar 2015 09:02:23 +0000 (10:02 +0100)
public/js/app.js

index a2163604ad8329e6755e2f1d55163e8113fe3af2..545032c8d24d67a9177803bb08eb44f3b2f438db 100644 (file)
   // Send a private message to a user
   var privateMessage = function(args, $outcome) {
     if ($.inArray(args[0], usersnicks) === -1) {
-      $outcome.text('(From binb): There\'s noone here by that name.');
+      $outcome.text('(From binb): There\'s no one here by that name.');
       return addChatEntry($outcome);
     }
-    return addPrivate(args[0]);
+    addPrivate(args[0]);
   };
 
   // Reply to the last player who sent you a private message
   var replyToPrivate = function(args, $outcome) {
     if (!replyto) {
-      $outcome.text('(From binb): There\'s noone to reply to.');
+      $outcome.text('(From binb): There\'s no one to reply to.');
       return addChatEntry($outcome);
     }
     if ($.inArray(replyto, usersnicks) === -1) {
       $outcome.text('(From binb):' + replyto + ' isn\'t here anymore.');
       return addChatEntry($outcome);
     }
-    return addPrivate(replyto);
+    addPrivate(replyto);
   };
 
   // Unban a player