D-Bot/plugins/punycode.php

9 lines
226 B
PHP
Raw Normal View History

2015-07-15 23:55:58 -05:00
<?php
PluginSet("Punycode Encode & Decode.");
2016-03-09 02:53:50 -06:00
if (idn_to_ascii($plugin_text)) {
$msg = "UTF-8: ".idn_to_ascii($plugin_text);
}else {
$msg = "Punnycode: ".idn_to_utf8($plugin_text);
2015-07-15 23:55:58 -05:00
}
$BOT->msg($plugin_sendto, $msg);
?>