Comments (12)
hi, not sure the support status of bitlbee-discord, so just posting here in case this helps anyone. It seems the problem is that the replacement string needs to be escaped properly as well. That is, in c4f3426, the " "
should be "\\r\\n"
. (Seeing how the tab is escaped above was the clue.) That seems to fix things for me and I can use paste_buffer
with no problems. Sorry for the spam.
from bitlbee-discord.
Couldn't test it out myself since both irssi and xchat seem to split messages on \n, but 2d27e5e should fix you problem. Could you please confirm that for me?
from bitlbee-discord.
You have to enable the "paste_buffer" option and then Bitlbee will concatenate all messages received within 200 ms of the first.
But sure, I'll test
from bitlbee-discord.
Well the messages send properly and no longer error out...but after seeing the output, it might be better if the /n is converted to a space. It runs the lines together.
Thanks again.
from bitlbee-discord.
Makes sense, c4f3426 does that.
from bitlbee-discord.
Thanks~ Great fix. I think this can be closed.
from bitlbee-discord.
It seems perhaps that discord allows new lines now, so perhaps this concatting is no longer needed?
from bitlbee-discord.
Hmm I've tried messing with this, and despite discord allowing mutliline, neither removing this stripping of /r/n, nor making it only strip /r seems to still result in a failure to send a message.
from bitlbee-discord.
Hey there, @lethal-click. The support status is "maintenance only" but I'd be glad to merge this if you can create a pull-request with your changes and we can ask someone (like @tecknojock) to test it out.
from bitlbee-discord.
hey, sorry, but I don't have Git or anything like that installed. I literally just hacked the change in and recompiled locally. I only posted in the hope that anyone else with the same problem would find this handy (much gratitude to you @sm00th for making bitlbee-discord in the first place).
the diff is literally just the following on the tip of master:
363c363,364
< nmsg = g_regex_replace_literal(escregex, emsg, -1, 0, " ", 0, NULL);
---
> nmsg = g_regex_replace_literal(escregex, emsg, -1, 0, "\\r\\n", 0, NULL);
in case someone else is able to submit the pull request.
from bitlbee-discord.
For small things like this, the web interface is easier.
Either way, submitted per your request. #196
from bitlbee-discord.
thanks @Alcaro, looks good. Hope someone is able to get some use out of this.
from bitlbee-discord.
Related Issues (20)
- [FEATURE] HOT 2
- Add variable auto_join_whitelist ?
- discord - Login error: Connection timeout HOT 2
- Https links appear in the wrong query HOT 1
- Embeds not showing
- Using CFLAGS and LDFLAGS on command line to find bitlbee includes and libs HOT 6
- Threads support HOT 3
- Backlog fetching blocks Discord websocket heartbeat, Bitlbee response to PING HOT 5
- Login in is broken with glib2 >2.68 HOT 11
- Failed to switch to websocket mode HOT 2
- token location described in README out of date HOT 3
- Status aliases broken - "/away DND - some text" works, "/away Busy - some text" does not HOT 4
- Will bitlbee-discord work with a big account? HOT 3
- No incoming messages HOT 7
- Provide way to manually request backlog HOT 3
- Seeing own messages after change to new usernames HOT 1
- joining a discord channel doesn't show anyone else messages HOT 1
- Crashes on discord_parse_message
- discord - Login error: Failed to switch to websocket mode (and 400 bad request from cloudflare) HOT 3
- Add support for turning custom stickers into URLs (e.g. larger custom emoji)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitlbee-discord.