comparison libpurple/plugins/log_reader.c @ 18169:e9d751afc90b

reverse searching of '(' character
author Michael Shkutkov <mshkutkov@soc.pidgin.im>
date Mon, 18 Jun 2007 20:51:29 +0000
parents 285779ebfe0b
children 179bb0ea89c7
comparison
equal deleted inserted replaced
18168:285779ebfe0b 18169:e9d751afc90b
1968 c = strstr(c, "\n"); 1968 c = strstr(c, "\n");
1969 1969
1970 /* XXX: Do we need buddy_name when we have buddy->alias? */ 1970 /* XXX: Do we need buddy_name when we have buddy->alias? */
1971 buddy_name = ++c; 1971 buddy_name = ++c;
1972 1972
1973 /* we hope that nickname hasn't '(' symbol */ 1973
1974 c = strstr(c, "("); 1974 /* searching '(' character from the end of the line */
1975 c = strstr(c, "\n");
1976 while (*c && *c != '(')
1977 --c;
1975 1978
1976 if (*c == '(') { 1979 if (*c == '(') {
1977 const char *timestamp = c; 1980 const char *timestamp = c;
1978 int hour; 1981 int hour;
1979 int min; 1982 int min;