Skip to content

Commit

Permalink
Fix some copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Mar 29, 2024
1 parent d9fba8d commit 9120aef
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 6 deletions.
16 changes: 16 additions & 0 deletions attachment.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// mautrix-slack - A Matrix-Slack puppeting bridge.
// Copyright (C) 2022 Beeper, Max Sandholm
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

package main

import (
Expand Down
16 changes: 16 additions & 0 deletions auth/auth.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// mautrix-slack - A Matrix-Slack puppeting bridge.
// Copyright (C) 2022 Beeper
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

package auth

import (
Expand Down
19 changes: 18 additions & 1 deletion blocks.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// mautrix-slack - A Matrix-Slack puppeting bridge.
// Copyright (C) 2022 Max Sandholm
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

package main

import (
Expand All @@ -12,9 +28,10 @@ import (

"github.com/slack-go/slack"
"github.com/yuin/goldmark"
"go.mau.fi/mautrix-slack/database"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/format"

"go.mau.fi/mautrix-slack/database"
)

func (portal *Portal) renderImageBlock(block slack.ImageBlock) (*event.MessageEventContent, error) {
Expand Down
19 changes: 18 additions & 1 deletion emoji.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// mautrix-slack - A Matrix-Slack puppeting bridge.
// Copyright (C) 2022 Max Sandholm
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

package main

import (
Expand All @@ -6,8 +22,9 @@ import (
"regexp"
"strings"

"go.mau.fi/mautrix-slack/database"
"maunium.net/go/mautrix/id"

"go.mau.fi/mautrix-slack/database"
)

//go:embed resources/emoji.json
Expand Down
7 changes: 4 additions & 3 deletions formatter.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package main

// mautrix-slack - A Matrix-Slack puppeting bridge.
// Copyright (C) 2022 Tulir Asokan
//
Expand All @@ -16,6 +14,8 @@ package main
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

package main

import (
"fmt"
"regexp"
Expand All @@ -30,11 +30,12 @@ import (
"github.com/yuin/goldmark/renderer"
"github.com/yuin/goldmark/text"
goldmarkUtil "github.com/yuin/goldmark/util"
"go.mau.fi/mautrix-slack/database"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/format"
"maunium.net/go/mautrix/id"
"maunium.net/go/mautrix/util"

"go.mau.fi/mautrix-slack/database"
)

var escapeFixer = regexp.MustCompile(`\\(__[^_]|\*\*[^*])`)
Expand Down
19 changes: 18 additions & 1 deletion teamportal.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// mautrix-slack - A Matrix-Slack puppeting bridge.
// Copyright (C) 2022 Max Sandholm
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

package main

import (
Expand All @@ -7,9 +23,10 @@ import (

"github.com/slack-go/slack"

"go.mau.fi/mautrix-slack/database"
log "maunium.net/go/maulogger/v2"

"go.mau.fi/mautrix-slack/database"

"maunium.net/go/mautrix"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/id"
Expand Down

0 comments on commit 9120aef

Please sign in to comment.