Overview
Comment: | Adjust to ObjFW changes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7a7f60e3e63b1d8bd67b43effb987033 |
User & Date: | js on 2018-11-06 22:20:12 |
Other Links: | manifest | tags |
Context
2018-11-06
| ||
22:26 | Readd autogen.sh check-in: 92aea1ca90 user: js tags: trunk | |
22:20 | Adjust to ObjFW changes check-in: 7a7f60e3e6 user: js tags: trunk | |
2017-05-08
| ||
00:54 | Adjust to recent ObjFW changes check-in: 5dbb32c633 user: js tags: trunk | |
Changes
Modified src/IRCConnection.h from [161d77c9d0] to [dc79d3b924].
︙ | |||
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | + + - + - + - + | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import <ObjFW/ObjFW.h> OF_ASSUME_NONNULL_BEGIN @class IRCConnection; @class IRCUser; @protocol IRCConnectionDelegate <OFObject> @optional - (void)connection: (IRCConnection *)connection didCreateSocket: (OF_KINDOF(OFTCPSocket) *)socket; - (void)connection: (IRCConnection *)connection didReceiveLine: (OFString *)line; - (void)connection: (IRCConnection *)connection didSendLine: (OFString *)line; - (void)connectionWasEstablished: (IRCConnection *)connection; - (void)connection: (IRCConnection *)connection didSeeUser: (IRCUser *)user joinChannel: (OFString *)channel; - (void)connection: (IRCConnection *)connection didSeeUser: (IRCUser *)user leaveChannel: (OFString *)channel |
︙ | |||
71 72 73 74 75 76 77 | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | - - + + + - + - + - - + + - - - - - - - - + + + + + + + + + + + - + - - + + - + - + + + | didReceiveNamesForChannel: (OFString *)channel; - (void)connectionWasClosed: (IRCConnection *)connection; @end @interface IRCConnection: OFObject { Class _socketClass; |
Modified src/IRCConnection.m from [40d21b42ac] to [688cb09cde].
︙ | |||
180 181 182 183 184 185 186 | 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | - + - + | va_end(args); [self sendLine: line]; objc_autoreleasePoolPop(pool); } |
︙ | |||
478 479 480 481 482 483 484 | 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 | - + - + - + - + | } /* PRIVMSG */ if ([action isEqual: @"PRIVMSG"] && [components count] >= 4) { OFString *from = [components objectAtIndex: 0]; OFString *to = [components objectAtIndex: 2]; IRCUser *user; |
︙ | |||
589 590 591 592 593 594 595 | 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 | - + + - + + - + + | exception: (OFException *)exception { if (line != nil) { [self IRC_processLine: line]; [socket asyncReadLineWithTarget: self selector: @selector(socket: didReceiveLine: |
Modified src/IRCUser.h from [0435690016] to [cded263823].
︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | + + - + + + | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import <ObjFW/OFObject.h> OF_ASSUME_NONNULL_BEGIN @interface IRCUser: OFObject <OFCopying> { OFString *_nickname, *_username, *_hostname; } @property (readonly, nonatomic) OFString *nickname, *username, *hostname; + (instancetype)IRCUserWithString: (OFString *)string; |
Modified src/IRCUser.m from [3d00fb209b] to [61a450e638].
︙ | |||
37 38 39 40 41 42 43 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | - + | @synthesize username = _username, nickname = _nickname, hostname = _hostname; + (instancetype)IRCUserWithString: (OFString *)string { return [[[self alloc] initWithString: string] autorelease]; } |
︙ | |||
84 85 86 87 88 89 90 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | - + | [_nickname release]; [_username release]; [_hostname release]; [super dealloc]; } |