mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-22 05:25:15 +01:00
Fix using tag instead of custom_tag in send2chat (#52675)
* Adds more documentation to TGS chat funcs * Fix using `tag` instead of `custom_tag` for chat channels * Make new game notifcation message clearer
This commit is contained in:
@@ -53,7 +53,7 @@ In TGS3 it will always be sent to all connected designated game chats.
|
||||
var/list/channels_to_use = list()
|
||||
for(var/I in world.TgsChatChannelInfo())
|
||||
var/datum/tgs_chat_channel/channel = I
|
||||
var/list/applicable_tags = splittext(channel.tag, ",")
|
||||
var/list/applicable_tags = splittext(channel.custom_tag, ",")
|
||||
if(channel_tag in applicable_tags)
|
||||
channels_to_use += channel
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ SUBSYSTEM_DEF(discord)
|
||||
pass() // The list can just stay as its default (blank). Pass() exists because it needs a catch
|
||||
var/notifymsg = jointext(people_to_notify, ", ")
|
||||
if(notifymsg)
|
||||
notifymsg += ", a new round is starting!"
|
||||
send2chat(trim(notifymsg), CONFIG_GET(string/chat_new_game_notifications)) // Sends the message to the discord, using same config option as the roundstart notification
|
||||
fdel(notify_file) // Deletes the file
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user