Skip to content
Browse files

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 <psychon@znc.in>
  • Loading branch information...
1 parent aa9ccbc commit 13dbd6698c3c449b47e51d8d91dcc13ffee7f3ea @psychon psychon committed Aug 29, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/admin.cpp
View
6 modules/admin.cpp
@@ -355,11 +355,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

0 comments on commit 13dbd66

Please sign in to comment.
Something went wrong with that request. Please try again.