--- innwebd/innd.cpp 2004/07/04 21:54:39 1.8 +++ innwebd/innd.cpp 2005/02/26 16:10:26 1.12 @@ -1,7 +1,7 @@ /*******************************************************/ /* */ /* LeafOK Innbbsd */ -/* Copyright (C) LeafOK.com, 2003-2004 */ +/* Copyright (C) LeafOK.com, 2003-2005 */ /* */ /* Programmed by Leaf */ /* E-mail:leaflet@leafok.com QQ:6049044 */ @@ -156,7 +156,7 @@ int innd::cmd_list(void) sql = "select * from innd_conf order by `group`"; - RS.Open(CRecordset::snapshot,sql,CRecordset:forwardOnly | CRecordsset::readOnly); + RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); while(!RS.IsEOF()) { RS.GetFieldValue("group",dbVar,SQL_C_CHAR); @@ -355,8 +355,8 @@ int innd::cmd_ihave(const char* msg_id) } catch(CException* e) { - char strErrMsg[256]; - e->GetErrorMessage(strErrMsg,256); + char strErrMsg[1024]; + e->GetErrorMessage(strErrMsg,1024); syslog << logfile::log_head << "Error in cmd_ihave() [" << strErrMsg << "]" << endl; e->Delete(); return -1; @@ -398,3 +398,8 @@ int innd::db_env_init(void) } return 0; } + +bool innd::check_priv(void) +{ + return this->access.get; +}