From 290a490bfe3743f0bebecd132ede9fe36056dedd Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Sat, 9 May 2026 11:50:37 +0900
Subject: Fix use of non-trivial types with variadic method arguments.

This resolves issue #24.

Co-authored-by: Alexander Golubev <fatzer2@gmail.com>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 src/kvirc/sparser/kvi_sp_ctcp.cpp     | 4 ++--
 src/modules/regchan/libkviregchan.cpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/kvirc/sparser/kvi_sp_ctcp.cpp b/src/kvirc/sparser/kvi_sp_ctcp.cpp
index dfb3ab53..df30fbbe 100644
--- a/src/kvirc/sparser/kvi_sp_ctcp.cpp
+++ b/src/kvirc/sparser/kvi_sp_ctcp.cpp
@@ -1748,8 +1748,8 @@ void KviServerParser::parseCtcpRequestDcc(KviCtcpMessage *msg)
 				__tr2qs("Processing DCC %Q request from \r!n\r%Q\r [%Q@\r!h\r%Q\r] (%Q %s)"),
 				&decoded,&(msg->pSource->nick()),
 				&(msg->pSource->user()),&(msg->pSource->host()),
-				msg->szTag,
-				msg->msg->console()->decodeText(aux.ptr()));
+				&msg->szTag,
+				msg->msg->console()->decodeText(aux.ptr()).utf8().data());
 		}
 
 		KviModule * m = g_pModuleManager->getModule("dcc");
diff --git a/src/modules/regchan/libkviregchan.cpp b/src/modules/regchan/libkviregchan.cpp
index a8b29de7..5eee19b5 100644
--- a/src/modules/regchan/libkviregchan.cpp
+++ b/src/modules/regchan/libkviregchan.cpp
@@ -210,7 +210,7 @@ static bool regchan_kvs_cmd_showlist(KviKvsModuleCommandCall * c)
 			KviPointerHashTableIterator<TQString,KviStr> pit(*(ch->propertyDict()));
 			while(KviStr * s = pit.current())
 			{
-				c->window()->output(KVI_OUT_SYSTEMMESSAGE,__tr2qs("   Property: %s=%s"),pit.currentKey(),s->ptr());
+				c->window()->output(KVI_OUT_SYSTEMMESSAGE,__tr2qs("   Property: %s=%s"),pit.currentKey().utf8().data(),s->ptr());
 				++pit;
 			}
 		}
-- 
cgit v1.2.3

