This commit is contained in:
anon 2023-08-04 15:31:35 +02:00
commit 0e744bae5f
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,6 @@
server=irc.rizon.net server=irc.rizon.net
username=probotic username=probotic
port=6667 port=6667
admins=anon8697 emilemilemil fa11_1eaf ;admins=anon8697 emilemilemil fa11_1eaf
; these arent comments, but they work because
; the parser is broken enough to make it just werk

View File

@ -78,11 +78,11 @@ str_split(char const * s, char c)
for (i = 1; s[i]; ++i) for (i = 1; s[i]; ++i)
{ {
if (s[i] == c && s[i - 1] != c) if ((s[i + 1] == c || !s[i + 1]) && s[i] != c)
{ {
/* end of a token*/ /* end of a token*/
ret[current_token_i] = strndup(s + token_start_i, i - token_start_i); ret[current_token_i] = strndup(s + token_start_i, i - token_start_i + 1);
if (!ret[current_token_i]) if (!ret[current_token_i])
{ {
split_clean(ret); split_clean(ret);