Commit 92cb1dc1 authored by Berke Viktor's avatar Berke Viktor

Reformat the DNS plugin a bit while we're at it

parent d559401c
......@@ -67,9 +67,11 @@ waitline (void *source, char *buf, int bufsize)
{
len = 1;
/* we can't read() here, due to glib's giowin32 */
if(ph->xchat_read_fd(ph, source, buf + i, &len) != 0)
if (ph->xchat_read_fd (ph, source, buf + i, &len) != 0)
{
return -1;
if(buf[i] == '\n' || bufsize == i + 1)
}
if (buf[i] == '\n' || bufsize == i + 1)
{
buf[i] = 0;
return i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment