Browse Source

Typo corrections

pull/129/head
“elderlabs” 7 years ago
parent
commit
ae41136293
  1. 2
      disco/bot/plugin.py
  2. 6
      disco/voice/udp.py

2
disco/bot/plugin.py

@ -445,7 +445,7 @@ class Plugin(LoggingClass, PluginDeco):
repeat : bool
Whether this schedule is repeating (or one time).
init : bool
Whether to run this schedule once immediatly, or wait for the first
Whether to run this schedule once immediately, or wait for the first
scheduled iteration.
kwargs: dict
kwargs which will be passed to executed `func`

6
disco/voice/udp.py

@ -268,11 +268,11 @@ class UDPVoiceClient(LoggingClass):
first_byte, = struct.unpack_from('>B', data[:offset])
offset += 1
rtp_extension_identifer = first_byte & 0xF
rtp_extension_identifier = first_byte & 0xF
rtp_extension_len = ((first_byte >> 4) & 0xF) + 1
# Ignore data if identifer == 15, so skip if this is set as 0
if rtp_extension_identifer:
# Ignore data if identifier == 15, so skip if this is set as 0
if rtp_extension_identifier:
fields.append(data[offset:offset + rtp_extension_len])
offset += rtp_extension_len

Loading…
Cancel
Save