Skip to content
Browse files

Added comments

  • Loading branch information...
1 parent 1987542 commit 8c3263a6ea6105ad1f2c6e2c5b09a5f88c120fb1 @spcsser committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/node/db/PadManager.js
View
3 src/node/db/PadManager.js
@@ -210,6 +210,9 @@ exports.isValidPadId = function(padId)
return /^(g.[a-zA-Z0-9]{16}\$)?[^$]{1,50}$/.test(padId);
}
+/**
+ * Removes the pad from database and unloads it.
+ */
exports.removePad = function(padId){
db.remove("pad:"+padId);
exports.unloadPad(padId);

0 comments on commit 8c3263a

Please sign in to comment.
Something went wrong with that request. Please try again.