~rcr/rirc

572ca78306a991cb2cf4b930e2aad258330a72a4 — Richard Robbins 1 year, 10 days ago 032d640
fix build, urls, add email to build failures
M .builds/alpine.yml => .builds/alpine.yml +5 -0
@@ 16,3 16,8 @@ tasks:
  - build: |
      cd rirc
      make rirc rirc.debug test

triggers:
  - action: email
    condition: failure
    to: mail+sourcehut+builds@rcr.io

M .builds/debian.yml => .builds/debian.yml +5 -0
@@ 55,3 55,8 @@ tasks:
      echo >> sonar-project.properties "sonar.tests=test"
      ./build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output make clean rirc.debug test
      ./sonar-scanner-$SONAR_VER-linux/bin/sonar-scanner

triggers:
  - action: email
    condition: failure
    to: mail+sourcehut+builds@rcr.io

M README.md => README.md +1 -1
@@ 116,4 116,4 @@ Keys:

### More info:

[rcr.io/rirc/](http://rcr.io/rirc/)
[https://rcr.io/rirc/](http://rcr.io/rirc/)

M config.def.h => config.def.h +4 -0
@@ 64,6 64,10 @@
#define INPUT_PREFIX_FG 239
#define INPUT_PREFIX_BG -1

/* Action message */
#define ACTION_FG -1
#define ACTION_BG 239

/* Input line text colours */
#define INPUT_FG 250
#define INPUT_BG -1

M src/handlers/irc_ctcp.c => src/handlers/irc_ctcp.c +1 -1
@@ 211,7 211,7 @@ ctcp_request_source(struct server *s, const char *from, const char *targ, char *
	else
		server_info(s, "CTCP SOURCE from %s", from);

	sendf(s, "NOTICE %s :\001SOURCE rcr.io/rirc\001", from);
	sendf(s, "NOTICE %s :\001SOURCE https://rcr.io/rirc\001", from);

	return 0;
}

M test/handlers/irc_ctcp.c => test/handlers/irc_ctcp.c +3 -3
@@ 270,15 270,15 @@ test_recv_ctcp_request_source(void)
{
	CHECK_REQUEST(":nick!user@host PRIVMSG me :\001SOURCE", 0, 1, 1,
		"CTCP SOURCE from nick",
		"NOTICE nick :\001SOURCE rcr.io/rirc\001");
		"NOTICE nick :\001SOURCE https://rcr.io/rirc\001");

	CHECK_REQUEST(":nick!user@host PRIVMSG me :\001SOURCE\001", 0, 1, 1,
		"CTCP SOURCE from nick",
		"NOTICE nick :\001SOURCE rcr.io/rirc\001");
		"NOTICE nick :\001SOURCE https://rcr.io/rirc\001");

	CHECK_REQUEST(":nick!user@host PRIVMSG me :\001SOURCE unused args\001", 0, 1, 1,
		"CTCP SOURCE from nick (unused args)",
		"NOTICE nick :\001SOURCE rcr.io/rirc\001");
		"NOTICE nick :\001SOURCE https://rcr.io/rirc\001");
}

static void