X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/7a27854095fb80ce76e2ef5a59e87f42fbbe45fe..18006b5cc4b0c4b72c638669a6ad5c8fb39ddf87:/src/common.h diff --git a/src/common.h b/src/common.h index fea2cf3..ffee4f4 100644 --- a/src/common.h +++ b/src/common.h @@ -5,7 +5,7 @@ * * x3 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -269,6 +269,8 @@ void string_buffer_append_substring(struct string_buffer *buf, const char *tail, void string_buffer_append_vprintf(struct string_buffer *buf, const char *fmt, va_list args); void string_buffer_append_printf(struct string_buffer *buf, const char *fmt, ...); void string_buffer_replace(struct string_buffer *buf, unsigned int from, unsigned int len, const char *repl); +void +irc_strtolower(char *str); int str_is_number(const char *str); #define enabled_string(string) (!irccasecmp((string), "on") || !strcmp((string), "1") || !irccasecmp((string), "enabled"))