Adjust to ObjFW changes
FossilOrigin-Name: 42243ac2f70297a6b48b7cd7d0a53b8ee49cc69a430c156d730a335af3bc3ed3
This commit is contained in:
parent
b445394724
commit
e3e8e886a7
3 changed files with 46 additions and 50 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue