@@ -48,6 +48,13 @@ class IRCClient(asyncio.Protocol):
48
48
:py:meth:`.join` but only after
49
49
:py:meth:`handle_own_join()<.IRCHandler.handle_own_join>` was called.
50
50
51
+ Channel and nick name arguments to methods that send a command to the server
52
+ are case insensitive, except for methods that change the clients nick.
53
+ Channel names returned by the server (e.g. in IRCClient's
54
+ :py:attr:`.channels`-property)
55
+ are usually lower case while nick names are the case they were registered by
56
+ it's user.
57
+
51
58
Args:
52
59
handler (:py:class:`IRCHandler<fredirc.IRCHandler>`): \
53
60
handler that handles events from this client
@@ -145,7 +152,7 @@ def reconnect(self, delay=0.0):
145
152
return
146
153
self ._reconnect = True
147
154
time .sleep (delay )
148
- asyncio .get_event_loop ().stop () # TODO use terminate() here?
155
+ asyncio .get_event_loop ().stop () # TODO use terminate() here?
149
156
150
157
def enable_logging (self , enable ):
151
158
""" Enable or disable logging.
@@ -483,7 +490,7 @@ def data_received(self, data):
483
490
# then loop 'while self._buffer', look for terminator and remove
484
491
# the message.
485
492
# 2. Make buffer a byte string, split lines to list, iterate list,
486
- # clear buffer. Con: While handling messageis in loop, buffer
493
+ # clear buffer. Con: While handling messages in loop, buffer
487
494
# stays the same (empty or with all messages that were received)
488
495
# Con of buffer byte string: more difficult to debug
489
496
#
@@ -507,6 +514,8 @@ def _get_channel_info(self):
507
514
channel_info = property (_get_channel_info )
508
515
""" Get information about channels.
509
516
517
+ To get all channel names use :py:attr:`.channels`.
518
+
510
519
Returns:
511
520
dict: A read-only(!) mapping of channel names to
512
521
:py:class:`ChannelInfo<fredirc.ChannelInfo>` objects.
0 commit comments