2022-07-25 17:03:10 +00:00
|
|
|
from core.lib.threshold import threshold_request
|
|
|
|
|
2022-07-25 18:08:28 +00:00
|
|
|
|
2022-07-25 17:03:10 +00:00
|
|
|
def get_irc_stats():
|
|
|
|
url = "irc/stats"
|
|
|
|
payload = {}
|
|
|
|
stats = threshold_request(url, payload)
|
|
|
|
if not stats:
|
|
|
|
return {}
|
|
|
|
return stats
|
|
|
|
|
2022-07-25 18:08:28 +00:00
|
|
|
|
2022-07-25 17:03:10 +00:00
|
|
|
def get_irc_networks():
|
|
|
|
url = "irc/networks"
|
|
|
|
payload = {}
|
|
|
|
networks = threshold_request(url, payload)
|
|
|
|
if not networks:
|
|
|
|
return {}
|
2022-07-25 18:08:28 +00:00
|
|
|
return networks
|