ObjIRC  Check-in [84aa37ee2e]

Overview
Comment:Add support for sending notices.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 84aa37ee2ebcf403cbbaea796a48c5af26d800bd7db673ff7894f5ca8a685bbd
User & Date: js on 2011-09-10 19:59:13
Other Links: manifest | tags
Context
2011-09-10
23:11
Add support for kicking a user. check-in: 4e0ae8ca4e user: js tags: trunk
19:59
Add support for sending notices. check-in: 84aa37ee2e user: js tags: trunk
13:40
Add support for parsing KICK. check-in: 6f062f7189 user: js tags: trunk
Changes

Modified src/IRCConnection.h from [42875301de] to [7ce17cfdc3].

94
95
96
97
98
99
100




101
102
	  withReason: (OFString*)reason;
- (void)sendLine: (OFString*)line;
- (void)sendLineWithFormat: (OFConstantString*)line, ...;
- (void)sendMessage: (OFString*)msg
	  toChannel: (IRCChannel*)channel;
- (void)sendMessage: (OFString*)msg
	     toUser: (IRCUser*)user;




- (void)handleConnection;
@end







>
>
>
>


94
95
96
97
98
99
100
101
102
103
104
105
106
	  withReason: (OFString*)reason;
- (void)sendLine: (OFString*)line;
- (void)sendLineWithFormat: (OFConstantString*)line, ...;
- (void)sendMessage: (OFString*)msg
	  toChannel: (IRCChannel*)channel;
- (void)sendMessage: (OFString*)msg
	     toUser: (IRCUser*)user;
- (void)sendNotice: (OFString*)notice
	    toUser: (IRCUser*)user;
- (void)sendNotice: (OFString*)notice
	 toChannel: (IRCChannel*)channel;
- (void)handleConnection;
@end

Modified src/IRCConnection.m from [ca6d7e7dd4] to [76aa9bffd4].

133
134
135
136
137
138
139












140
141
142
143
144
145
146
}

- (void)sendMessage: (OFString*)msg
	     toUser: (IRCUser*)user
{
	[self sendLineWithFormat: @"PRIVMSG %@ :%@", user.nickname, msg];
}













- (void)handleConnection
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	OFString *line;
	OFArray *split;








>
>
>
>
>
>
>
>
>
>
>
>







133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
}

- (void)sendMessage: (OFString*)msg
	     toUser: (IRCUser*)user
{
	[self sendLineWithFormat: @"PRIVMSG %@ :%@", user.nickname, msg];
}

- (void)sendNotice: (OFString*)notice
	    toUser: (IRCUser*)user
{
	[self sendLineWithFormat: @"NOTICE %@ :%@", user.nickname, notice];
}

- (void)sendNotice: (OFString*)notice
	 toChannel: (IRCChannel*)channel
{
	[self sendLineWithFormat: @"NOTICE %@ :%@", channel.name, notice];
}

- (void)handleConnection
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	OFString *line;
	OFArray *split;