/plugins/MD5.php
PHP | 38 lines | 13 code | 7 blank | 18 comment | 1 complexity | 3898dbf195d6ea47ae6797414b0a18f2 MD5 | raw file
Possible License(s): GPL-2.0
- <?php
- /*
- This file is part of Nimda - An advanced event-driven IRC Bot written in PHP with a nice plugin system
- Copyright (C) 2009 noother [noothy@gmail.com]
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
- */
- class MD5 extends Plugin {
-
- function isTriggered() {
- if(!isset($this->info['text'])) {
- $this->sendOutput($this->CONFIG['usage']);
- return;
- }
-
- $output = 'md5("'.$this->info['text'].'") => '.md5($this->info['text']);
-
- $this->sendOutput($output);
-
- return;
- }
- }
- ?>