mcbot/cmds/shortenurl.lua
changeset 66 d9c00a9fe9d5
parent 65 2cefbe9f3ac6
equal deleted inserted replaced
65:2cefbe9f3ac6 66:d9c00a9fe9d5
     1 
     1 
     2 -- This module is derivated from isbear's shortenurl function:
     2 --  This module is derivated from isbear's shortenurl function:
     3 -- http://hg.lilotux.net/mod-mcabber-lua/file/tip/examples/shortenurl.lua
     3 --  http://hg.lilotux.net/mod-mcabber-lua/file/tip/examples/shortenurl.lua
     4 --
     4 --
     5 --  * Copyright (C) 2012      Myhailo Danylenko <isbear@ukrpost.net>
     5 -- Copyright (C) 2012      Myhailo Danylenko <isbear@ukrpost.net>
     6 --  * Copyright (C) 2012      Mikael Berthe <mikael@lilotux.net>
     6 -- Copyright (C) 2012      Mikael Berthe <mikael@lilotux.net>
     7 --
     7 --
       
     8 -- This program is free software; you can redistribute it and/or modify
       
     9 -- it under the terms of the GNU General Public License as published by
       
    10 -- the Free Software Foundation; either version 2 of the License, or (at
       
    11 -- your option) any later version.
       
    12 --
       
    13 -- Please check the license in the COPYING file at the root of the tree.
       
    14 --
       
    15 
     8 
    16 
     9 require "libs.shcmd"
    17 require "libs.shcmd"
    10 
    18 
    11 local json = require 'json'
    19 local json = require 'json'
    12 
    20