Skip to content

Commit

Permalink
textutils: new funs ltr and rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
torhve authored and haste committed Nov 23, 2015
1 parent 0716dad commit 5c3375c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/textutils.moon
Expand Up @@ -46,6 +46,10 @@ PRIVMSG:
'^%phex (.+)$': (source, destination, arg) =>
say arg\gsub '.', (b) ->
('%02x ')\format(b\byte!)
'^%prtl (.+)$': (source, destination, arg) =>
say ''..arg
'^%pltr (.+)$': (source, destination, arg) =>
say ''..arg
--'^%prepeat (%d+) (.*)$': (source, destination, nr, command) =>
-- for i=1, nr
-- @DispatchCommand 'PRIVMSG', command, source, destination

0 comments on commit 5c3375c

Please sign in to comment.