From 5f198c32a3a700a5906dbcdcf7fb99c95a01727c Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 13 Aug 2013 18:22:07 -0700 Subject: Skip spaces in one of the few places that aspect of atoi() was useful --- src/map/atcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 18ea0e0..05e49c0 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -1781,7 +1781,7 @@ int atcommand_help(const int fd, dumb_ptr sd, if (!split_key_value(line, &w1, &w2)) continue; int level; - extract(w1, &level); + extract(w1.strip(), &level); if (gm_level >= level) clif_displaymessage(fd, w2); } -- cgit v1.2.3-60-g2f50