Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; By Yam Mesicka - Change the fucking bad decoding to normal one.
- ;; DON'T FORGET! Replace the NETWORK_NAME_HERE with your network name.
- ;; Just go to the window of the server and write //echo -ta $network
- ;; Have fun :)
- on ^*:text:*:*:{
- haltdef
- if ($network == NETWORK_NAME_HERE) {
- set %lenlen 1
- unset %newstr
- while (%lenlen <= $len($1-)) {
- if (($asc($mid($1-,%lenlen,1)) >= 224) && ($asc($mid($1-,%lenlen,1)) <= 250)) {
- set %newstr %newstr $+ $chr($calc($asc($mid($1-,%lenlen,1)) + 1264))
- }
- elseif ($asc($mid($1-,%lenlen,1)) == 32) {
- set %newstr %newstr $+ @M1S@
- }
- else {
- set %newstr %newstr $+ $mid($1-,%lenlen,1)
- }
- inc %lenlen
- }
- if ($left($target,1) == $chr(35)) {
- echo -t $target < $+ $nick($target,$nick).pnick $+ > $replace(%newstr,@M1S@,$chr(32))
- }
- else {
- echo -t $nick < $+ $nick $+ > $replace(%newstr,@M1S@,$chr(32))
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement