From ce5d73c9cd33ff2c280b6b2f58d29b22f41ba45d Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 29 Aug 2011 14:10:45 +0200 Subject: [PATCH] admin: Fix getchan {inconfig,keepbuffer,detached} Instead of giving a useful result, they returned their result by sometimes omitting the first character of the option name. Whoops. Signed-off-by: Uli Schlachter --- modules/admin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/admin.cpp b/modules/admin.cpp index 8ccbd13f..94d2b43e 100644 --- a/modules/admin.cpp +++ b/modules/admin.cpp @@ -356,11 +356,11 @@ class CAdminMod : public CModule { else if (sVar == "buffer") PutModule("Buffer = " + CString(pChan->GetBufferCount())); else if (sVar == "inconfig") - PutModule("InConfig = " + pChan->InConfig()); + PutModule("InConfig = " + CString(pChan->InConfig())); else if (sVar == "keepbuffer") - PutModule("KeepBuffer = " + pChan->KeepBuffer()); + PutModule("KeepBuffer = " + CString(pChan->KeepBuffer())); else if (sVar == "detached") - PutModule("Detached = " + pChan->IsDetached()); + PutModule("Detached = " + CString(pChan->IsDetached())); else if (sVar == "key") PutModule("Key = " + pChan->GetKey()); else