Skip to content

Commit

Permalink
Manually patch in version string until new fix lands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Sep 26, 2022
1 parent 89343fa commit 766d1ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/DebugApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { getLogger } from "./logging";
import { BridgedClient, BridgedClientStatus } from "./irc/BridgedClient";
import { IrcBridge } from "./bridge/IrcBridge";
import { ProvisionRequest } from "./provisioning/ProvisionRequest";
import { getBridgeVersion } from "matrix-appservice-bridge";

const log = getLogger("DebugApi");

Expand Down Expand Up @@ -100,7 +99,7 @@ export class DebugApi {
}
else if (req.method === "GET" && path === "/version") {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write(getBridgeVersion());
response.write("0.35.1");
response.end();
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/bridge/AdminRoomHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ export class AdminRoomHandler {
}

private showBridgeVersion() {
return new MatrixAction(ActionType.Notice, `BridgeVersion: ${getBridgeVersion()}`);
return new MatrixAction(ActionType.Notice, `BridgeVersion: 0.35.1`);
}

private showHelp(sender: string): MatrixAction {
Expand Down
2 changes: 1 addition & 1 deletion src/irc/ConnectionInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const THROTTLE_WAIT_MS = 20 * 1000;

// String reply of any CTCP Version requests
const CTCP_VERSION =
(homeserverName: string) => `matrix-appservice-irc ${getBridgeVersion()} bridged via ${homeserverName}`;
(homeserverName: string) => `matrix-appservice-irc 0.35.1 bridged via ${homeserverName}`;

const CONN_LIMIT_MESSAGES = [
"too many host connections", // ircd-seven
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function runBridge(
log.info("Sentry ENABLED");
Sentry.init({
dsn: config.sentry.dsn,
release: getBridgeVersion(),
release: "0.35.1",
environment: config.sentry.environment,
serverName: config.sentry.serverName,
});
Expand Down

0 comments on commit 766d1ad

Please sign in to comment.