Adjust to ObjFW changes

FossilOrigin-Name: 42243ac2f70297a6b48b7cd7d0a53b8ee49cc69a430c156d730a335af3bc3ed3
This commit is contained in:
Jonathan Schleifer 2018-12-17 21:04:49 +00:00
parent b445394724
commit e3e8e886a7
3 changed files with 46 additions and 50 deletions

View file

@ -44,7 +44,6 @@ OF_APPLICATION_DELEGATE(TestApp)
[connection setDelegate: self];
[connection connect];
[connection handleConnection];
}
- (void)connection: (IRCConnection*)connection
@ -64,6 +63,14 @@ OF_APPLICATION_DELEGATE(TestApp)
[connection joinChannel: @"#objfw"];
}
- (void)connection: (IRCConnection *)connection
didFailToConnectWithException: (id)exception
{
[of_stderr writeFormat: @"Failed to connect: %@\n", exception];
[OFApplication terminateWithStatus: 1];
}
- (void)connection: (IRCConnection*)connection
didSeeUser: (IRCUser*)user
joinChannel: (OFString*)channel