diff options
author | Evan Prodromou <evan@status.net> | 2010-01-08 00:38:20 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-08 00:38:20 -0800 |
commit | 4f62d685d04d43332e069c6de393ceb187594a02 (patch) | |
tree | d885cc8e48d125e57a1a1707c30a74f73ce12c0c /plugins/Blacklist | |
parent | c57fe7fbf5be4c6a83f249849a535bba2549a2a6 (diff) |
Mapstraction PluginVersion
Diffstat (limited to 'plugins/Blacklist')
-rw-r--r-- | plugins/Blacklist/BlacklistPlugin.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/Blacklist/BlacklistPlugin.php b/plugins/Blacklist/BlacklistPlugin.php index 655b0926b..84a2cb616 100644 --- a/plugins/Blacklist/BlacklistPlugin.php +++ b/plugins/Blacklist/BlacklistPlugin.php @@ -43,6 +43,8 @@ if (!defined('STATUSNET')) { class BlacklistPlugin extends Plugin { + const VERSION = STATUSNET_VERSION; + public $nicknames = array(); public $urls = array(); @@ -200,4 +202,15 @@ class BlacklistPlugin extends Plugin return true; } + + function onPluginVersion(&$versions) + { + $versions[] = array('name' => 'Blacklist', + 'version' => self::VERSION, + 'author' => 'Evan Prodromou', + 'homepage' => 'http://status.net/wiki/Plugin:Blacklist', + 'description' => + _m('Keep a blacklist of forbidden nickname and URL patterns.')); + return true; + } } |