Implement joining and parting channels

This commit is contained in:
2022-07-27 20:53:41 +01:00
parent 3d91c4164e
commit b401fe939f
9 changed files with 262 additions and 36 deletions

View File

@@ -28,6 +28,7 @@ from core.views.manage.threshold.irc import (
ThresholdIRCNetworkInfo,
ThresholdIRCNetworkInfoEdit,
ThresholdIRCNetworkRelays,
ThresholdIRCNetworkRelayStatus,
ThresholdIRCNetworks,
ThresholdIRCStats,
)
@@ -119,11 +120,27 @@ urlpatterns = [
ThresholdIRCNetworkRelays.as_view(),
name="threshold_irc_network_relays",
),
path(
"manage/threshold/irc/network/<str:net>/<int:num>/<int:status>/",
ThresholdIRCNetworkRelayStatus.as_view(),
name="threshold_irc_network_relay_status",
),
path(
"manage/threshold/irc/network/<str:net>/channels/",
ThresholdIRCNetworkChannels.as_view(),
name="threshold_irc_network_channels",
),
path(
"manage/threshold/irc/network/<str:net>/channel/<channel>/",
ThresholdIRCNetworkChannels.as_view(),
name="threshold_irc_network_channel",
),
# No channel argument as we're gonna do a form
path(
"manage/threshold/irc/network/<str:net>/channel/",
ThresholdIRCNetworkChannels.as_view(),
name="threshold_irc_network_channel",
),
##
path("api/chans/", ThresholdChans.as_view(), name="chans"),
path("api/users/", ThresholdUsers.as_view(), name="users"),