Added comments

pull/1342/head
Swen 2013-01-08 20:19:10 +01:00
parent 198754222d
commit 8c3263a6ea
1 changed files with 3 additions and 0 deletions

View File

@ -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);