Skip to content

Commit 0c1f181

Browse files
committed
fix logged output
1 parent 68aded8 commit 0c1f181

File tree

2 files changed

+89
-2
lines changed

2 files changed

+89
-2
lines changed

kirc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ log_append(char *str, char *path) {
3737

3838
FILE *out = fopen(path, "a");
3939

40-
fprintf(out, "%s", str);
40+
fprintf(out, "%s\n", str);
4141
fclose(out);
4242
}
4343

@@ -105,7 +105,7 @@ printw(const char *format, ...) {
105105
}
106106
}
107107

108-
printf("\n");
108+
putchar('\n');
109109
}
110110

111111
static void

log

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
NICK kirc2
2+
3+
USER kirc2 - - :kirc2
4+
5+
verne.free *** Looking up your hostname...
6+
verne.free *** Checking Ident
7+
verne.free *** Found your hostname
8+
verne.free *** No Ident response
9+
JOIN #kirc
10+
11+
verne.free Your host is verne.freenode.net[185.30.166.38/6667], running version ircd-seven-1.1.9
12+
verne.free This server was created Mon Mar 16 2020 at 18:29:20 UTC
13+
verne.free (null)
14+
verne.free 120 PREFIX=(ov)@+ MAXLIST=bqeI:100 MODES=4 NETWORK=freenode STATUSMSG=@+ CALLERID=g CASEMAPPING=rfc1459 :are supported by this server
15+
verne.free 1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:4,NOTICE:4,ACCEPT:,MONITOR: EXTBAN=$,ajrxz CLIENTVER=3.0 ETRACE WHOX KNOCK :are supported by this server
16+
verne.free are supported by this server
17+
verne.free There are 102 users and 80613 invisible on 31 servers
18+
verne.free IRC Operators online
19+
verne.free unknown connection(s)
20+
verne.free channels formed
21+
verne.free I have 3622 clients and 1 servers
22+
verne.free Current local users 3622, max 4812
23+
verne.free Current global users 80715, max 89765
24+
verne.free Highest connection count: 4813 (4812 clients) (1612168 connections received)
25+
verne.free - verne.freenode.net Message of the Day -
26+
verne.free - Welcome to verne.freenode.net in Amsterdam, NL.
27+
verne.free - Thanks to http://www.hyperfilter.com/ for sponsoring
28+
verne.free - this server!
29+
verne.free -
30+
verne.free -
31+
verne.free - VERNE, Jules (1828-1905). Born in Nantes, France, Verne was
32+
verne.free - a pioneering french author known for novels such as Twenty
33+
verne.free - Thousand Leagues Under the Sea, A Journey to the Center of the
34+
verne.free - Earth, and Around the World in Eighty Days. Often lauded as the
35+
verne.free - Father of science fiction, Verne wrote about concepts such as
36+
verne.free - space travel, skyscrapers, and worldwide communications
37+
verne.free - networks long before these ideas became popularised or realised.
38+
verne.free -
39+
verne.free - Welcome to freenode - supporting the free and open source
40+
verne.free - software communities since 1998.
41+
verne.free -
42+
verne.free - By connecting to freenode you indicate that you have read and
43+
verne.free - accept our policies and guidelines as set out on https://freenode.net
44+
verne.free -
45+
verne.free - In the event that you observe behaviour that contravenes our policies,
46+
verne.free - please notify a volunteer staff member via private message, or send us an
47+
verne.free - e-mail to [email protected] -- we will do our best to address the
48+
verne.free - situation within a reasonable period of time, and we may request further
49+
verne.free - information or, as appropriate, involve other parties such as channel operators
50+
verne.free - Group Contacts representing an on-topic group.
51+
verne.free -
52+
verne.free - freenode runs an open proxy scanner.
53+
verne.free -
54+
verne.free - If you are looking for assistance, you may be able to find a list of
55+
verne.free - volunteer staff on '/stats p' (shows only on-call staff) or by joining
56+
verne.free - #freenode and using the '/who freenode/staff/*' command. You may message
57+
verne.free - any of us at any time. Please note that freenode predominantly provides
58+
verne.free - assistance via private message, and while we have a network channel the
59+
verne.free - primary venue for support requests is via private message to a member
60+
verne.free - of the volunteer staff team.
61+
verne.free -
62+
verne.free - From time to time, volunteer staff may send server-wide notices relating to
63+
verne.free - the project, or the communities that we host. The majority of such notices
64+
verne.free - will be sent as wallops, and you can '/mode <yournick> +w' to ensure that you
65+
verne.free - do not miss them. Important messages relating to the freenode project, including
66+
verne.free - notices of upcoming maintenance and other scheduled downtime will be issued as
67+
verne.free - global notices.
68+
verne.free -
69+
verne.free - Representing an on-topic project? Don't forget to register, more information
70+
verne.free - can be found on the https://freenode.net website under "Group Registration".
71+
verne.free -
72+
verne.free - Thank you also to our server sponsors for the sustained support in keeping the
73+
verne.free - network going for close to two decades.
74+
verne.free -
75+
verne.free - Thank you for using freenode!
76+
verne.free End of /MOTD command.
77+
kirc2 +i
78+
freenode-c Welcome to freenode. To protect the network all new connections will be scanned for vulnerabilities. This will not harm your computer, and vulnerable hosts will be notified.
79+
freenode-c VERSION
80+
privmsg #kirc ::q
81+
82+
--> kirc2
83+
verne.free kirc2 @mcpcpc[m]
84+
verne.free End of /NAMES list.
85+
quit
86+
87+
<-- kirc2

0 commit comments

Comments
 (0)