minetest/minetest — pull request #1940 by ShadowNinja (2014-12-11 23:08:50+00:00)
Title: Deduplicate code and use stdlib in string functions

Also fixes some typos, compares strings in-place instead of copying a substr, and fixes style issues.