summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 133d78296..db62d05cf 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -18,7 +18,6 @@
#include <netdb.h>
#endif
-#include "../common/utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
@@ -34,6 +33,7 @@
#include <stdarg.h>
#include "char.h"
+#include "../common/utils.h"
#include "../common/strlib.h"
#include "itemdb.h"
#include "inter.h"
@@ -232,23 +232,6 @@ void set_char_offline(int char_id, int account_id) {
WFIFOSET(login_fd,6);
}
-//-----------------------------------------------------
-// Function to suppress control characters in a string.
-//-----------------------------------------------------
-int remove_control_chars(char *str) {
- int i;
- int change = 0;
-
- for(i = 0; i < strlen(str); i++) {
- if (str[i] < 32) {
- str[i] = '_';
- change = 1;
- }
- }
-
- return change;
-}
-
//----------------------------------------------------------------------
// Determine if an account (id) is a GM account
// and returns its level (or 0 if it isn't a GM account or if not found)