Code: Select all
if (s[0]) {
s[strlen(s) - 2] = 0;
dprintf(idx, "*** [%s] %s <%s> (%s) [UP %s]\n", botnetnick,
ver, network, s, s2);
} else
dprintf(idx, "*** [%s] %s <%s> (%s) [UP %s]\n", botnetnick,
ver, network, BOT_NOCHANNELS, s2);
} else
dprintf(idx, "*** [%s] %s <NO_IRC> [UP %s]\n", botnetnick, ver, s2);