commit 8c5e0077c973bb88e015d7f9f1ebc114ba6fb94b
parent b4385b6d43dfbb2cf1972b8e5130e35162dab9de
Author: Dominik Schmidt <dominik@schm1dt.ch>
Date: Wed, 5 Sep 2018 14:10:31 +0200
Heap-allocate irc messages.
If they get queued, we might have illegal memory accesses
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bastlibridge/interfaces/irc.d b/src/bastlibridge/interfaces/irc.d
@@ -243,7 +243,7 @@ final class IRC : QueuedEndpoint{
void onInput(IrcUser user, in char[] channel, in char[] msg){
trace("Got message from ",user.nickName, " in ", channel, ": ", msg);
heartbeat();
- auto msg2=scoped!(IRCMessage)(user, msg, channel);
+ auto msg2=new IRCMessage(user, msg, channel);
msg2.source=this;
if(msg.startsWith(this.commandPrefix)){
trace("Is a command");