mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Add SA:MP support, fixes #3
This commit is contained in:
parent
76ca9fd4d7
commit
bd17fb0001
5 changed files with 312 additions and 1 deletions
|
|
@ -57,6 +57,8 @@ function createProtocolInstance(type) {
|
|||
|
||||
module.exports = {
|
||||
lookup: function(type) {
|
||||
if(!type) throw Error('No game specified');
|
||||
|
||||
if(type.substr(0,9) == 'protocol-') {
|
||||
return createProtocolInstance(type.substr(9));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue