summaryrefslogtreecommitdiffstats
path: root/bridge/irc/helper.go
diff options
context:
space:
mode:
authorDuco van Amstel <duco.vanamstel@gmail.com>2018-11-14 21:43:52 +0000
committerWim <wim@42.be>2018-11-14 22:43:52 +0100
commit85564a35fd507fca986065c38262a71764ed41a7 (patch)
treede3f51e4ec07b3be3b03197acfbbf31f3d69cb74 /bridge/irc/helper.go
parent09713d40ba8b78671964efe83cdd1da124d44114 (diff)
downloadmatterbridge-msglm-85564a35fd507fca986065c38262a71764ed41a7.tar.gz
matterbridge-msglm-85564a35fd507fca986065c38262a71764ed41a7.tar.bz2
matterbridge-msglm-85564a35fd507fca986065c38262a71764ed41a7.zip
Fix IRC line splitting. Closes #584 (#587)
Diffstat (limited to 'bridge/irc/helper.go')
-rw-r--r--bridge/irc/helper.go61
1 files changed, 0 insertions, 61 deletions
diff --git a/bridge/irc/helper.go b/bridge/irc/helper.go
deleted file mode 100644
index 31382aa4..00000000
--- a/bridge/irc/helper.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package birc
-
-import (
- "strings"
-)
-
-/*
-func tableformatter(nicks []string, nicksPerRow int, continued bool) string {
- result := "|IRC users"
- if continued {
- result = "|(continued)"
- }
- for i := 0; i < 2; i++ {
- for j := 1; j <= nicksPerRow && j <= len(nicks); j++ {
- if i == 0 {
- result += "|"
- } else {
- result += ":-|"
- }
- }
- result += "\r\n|"
- }
- result += nicks[0] + "|"
- for i := 1; i < len(nicks); i++ {
- if i%nicksPerRow == 0 {
- result += "\r\n|" + nicks[i] + "|"
- } else {
- result += nicks[i] + "|"
- }
- }
- return result
-}
-*/
-
-func plainformatter(nicks []string) string {
- return strings.Join(nicks, ", ") + " currently on IRC"
-}
-
-func IsMarkup(message string) bool {
- switch message[0] {
- case '|':
- fallthrough
- case '#':
- fallthrough
- case '_':
- fallthrough
- case '*':
- fallthrough
- case '~':
- fallthrough
- case '-':
- fallthrough
- case ':':
- fallthrough
- case '>':
- fallthrough
- case '=':
- return true
- }
- return false
-}