X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/30874d6682a37bc1d8f3d76fd90afde6a0f3fce7..0b401fb654b69fd9649954a9bdd5ff041971e62d:/src/helpfile.c?ds=inline diff --git a/src/helpfile.c b/src/helpfile.c index 91e8f28..caee976 100644 --- a/src/helpfile.c +++ b/src/helpfile.c @@ -454,7 +454,7 @@ vsend_message(const char *dest, struct userNode *src, struct handle_info *handle void (*irc_send)(struct userNode *from, const char *to, const char *msg); static struct string_buffer input; unsigned int size, ipos, pos, length, chars_sent, use_color; - unsigned int expand_pos, expand_ipos, newline_ipos; + unsigned int expand_ipos, newline_ipos; char line[MAX_LINE_SIZE]; struct service *service; static char* trigger = NULL; @@ -513,7 +513,7 @@ vsend_message(const char *dest, struct userNode *src, struct handle_info *handle * that requires a very big intermediate buffer. */ expand_ipos = newline_ipos = ipos = 0; - expand_pos = pos = 0; + pos = 0; chars_sent = 0; while (input.list[ipos]) { char ch, *value = NULL, *free_value; @@ -730,12 +730,10 @@ vsend_message(const char *dest, struct userNode *src, struct handle_info *handle free(free_value); pos += length; if ((pos < size-1) && input.list[ipos]) { - expand_pos = pos; expand_ipos = ipos; continue; } send_line: - expand_pos = pos; expand_ipos = ipos; SEND_LINE(0); #undef SEND_LINE