Merge branch 'master' of https://git.lain.church/emil/probotic
This commit is contained in:
commit
0e744bae5f
@ -1,4 +1,6 @@
|
||||
server=irc.rizon.net
|
||||
username=probotic
|
||||
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
|
||||
|
@ -78,11 +78,11 @@ str_split(char const * s, char c)
|
||||
|
||||
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*/
|
||||
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])
|
||||
{
|
||||
split_clean(ret);
|
||||
|
Reference in New Issue
Block a user