- Added missing`[]` for new comment alerts
This commit is contained in:
Tristan B. Velloza Kildaire 2023-06-12 21:02:49 +02:00
parent 96f52c3e1c
commit 6f9364e559
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ void commitHandler(HTTPServerRequest request, HTTPServerResponse response)
string repositoryName = json["repository"]["full_name"].str();
string ircMessage = "["~repositoryName~"] New commit "~commitMessage~" ("~commitID~") by "~authorName~" ("~authorEmail~") ["~commitURL~"]";
string ircMessage = bold("["~repositoryName~"]")~" New commit "~commitMessage~" ("~commitID~") by "~italics(authorName)~" ("~authorEmail~") ["~underline(commitURL)~"]";
ircBot.channelMessage(ircMessage, channelName); //TODO: Add IRC error handling
/* Send message to NTFY server */
@ -158,7 +158,7 @@ void issueHandler(HTTPServerRequest request, HTTPServerResponse response)
string username = userBlock["username"].str();
//TODO: Add IRC error handling
string ircMessage = bold("["~repositoryName~"]")~" "~setForeground(SimpleColor.GREEN)~"New comment"~resetForegroundBackground()~" '"~italics(commentBody)~"' by "~italics(username)~" on issue "~bold("#"~to!(string)(issueID))~" "~underline(issueURL);
string ircMessage = bold("["~repositoryName~"]")~" "~setForeground(SimpleColor.GREEN)~"New comment"~resetForegroundBackground()~" '"~italics(commentBody)~"' by "~italics(username)~" on issue "~bold("#"~to!(string)(issueID))~" ["~underline(issueURL)~"]";
ircBot.channelMessage(ircMessage, channelName);
/* Send message to NTFY server */