X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fhelpfile.c;h=aaf0d80ab961eed5048225f3d241f536ff4a106b;hb=HEAD;hp=b8116b225234b80ba40d57d75672ce9d29c8c1ac;hpb=c3096a913619c5a057a102dd2b7eacba74b9c1cc;p=srvx.git diff --git a/src/helpfile.c b/src/helpfile.c index b8116b2..aaf0d80 100644 --- a/src/helpfile.c +++ b/src/helpfile.c @@ -394,7 +394,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]; if (IsChannelName(dest) || *dest == '$') { @@ -448,7 +448,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, *free_value; @@ -657,12 +657,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