mirror of
https://github.com/progval/irctest.git
synced 2025-04-06 23:39:46 +00:00
Add missing file.
This commit is contained in:
10
irctest/irc_utils/capabilities.py
Normal file
10
irctest/irc_utils/capabilities.py
Normal file
@ -0,0 +1,10 @@
|
||||
def cap_list_to_dict(l):
|
||||
d = {}
|
||||
for cap in l:
|
||||
if '=' in cap:
|
||||
(key, value) = cap.split('=', 1)
|
||||
else:
|
||||
key = cap
|
||||
value = None
|
||||
d[key] = value
|
||||
return d
|
Reference in New Issue
Block a user