Explorar el Código

Rectify embedded documentation (event names)

The comments for some methods in IRCClientSession.h and
IRCClientChannel.h were incorrect (they still talked about the old
event names, from version 1.0). This commit fixes those errors.
master
achmizs hace 10 años
padre
commit
d2ea0bf7fb
Se han modificado 2 ficheros con 18 adiciones y 7 borrados
  1. 2
    2
      IRCClient/IRCClientChannel.h
  2. 16
    5
      IRCClient/IRCClientSession.h

+ 2
- 2
IRCClient/IRCClientChannel.h Ver fichero

@@ -79,7 +79,7 @@
/** Sets the topic of the channel.
*
* Note that not all users on a channel have permission to change the topic; if you fail
* to set the topic, then you will not see an onTopic event on the IRCClientChannelDelegate.
* to set the topic, then you will not see a topicSet:by: event on the IRCClientChannelDelegate.
*
* @param aTopic the topic the client wishes to set for the channel.
*/
@@ -88,7 +88,7 @@
/** Sets the mode of the channel.
*
* Note that not all users on a channel have permission to change the mode; if you fail
* to set the mode, then you will not see a modeSet event on the IRCClientChannelDelegate.
* to set the mode, then you will not see a modeSet:withParams:by: event on the IRCClientChannelDelegate.
*
* @param mode the mode to set the channel to
*/

+ 16
- 5
IRCClient/IRCClientSession.h Ver fichero

@@ -168,13 +168,20 @@
of IRC commands. */
- (int)sendRaw:(NSData *)message;

/** quits the IRC server with the given reason. On success, an onQuit event will be
sent to the IRCClientSessionDelegate with the nickname of the IRC client.
/** quits the IRC server with the given reason.
On success, a userQuit:withReason: event will be sent to the
IRCClientSessionDelegate with the nickname of the IRC client and the reason
provided by the user (or nil if no reason was provided).
*/
- (int)quit:(NSData *)reason;

/** Joins a channel with a given name and key
On success, a userJoined:channel: event will be sent to the
IRCClientSessionDelegate with the nickname of the IRC client and the name of
the channel that was joined.
@param channel the channel to join
@param key they key for the channel (may be nil)
*/
@@ -192,7 +199,11 @@
*/
- (int)userMode:(NSString *)mode;

/** sets the IRC client nickname. On success, an onNick event will be sent to the delegate
/** sets the IRC client nickname.
On success, a nickChangedFrom:to: event will be sent to the
IRCClientSessionDelegate with our old nick and the new nick that we now
have.
@param newnick new nickname to set.
*/
@@ -234,8 +245,8 @@

/** send a CTCP reply to another IRC client
@param reply the CTCP reply string to send
@param target the nickname of the IRC client to send the reply to.
@param reply the CTCP reply string to send
@param target the nickname of the IRC client to send the reply to.
*/
- (int)ctcpReply:(NSData *)reply target:(NSString *)target;


Cargando…
Cancelar
Guardar