Logo Search packages:      
Sourcecode: sbnc version File versions  Download package

void CUser::Log ( const char *  Format,
  ... 
)

Log

Creates a new entry in the user's log.

Parameters:
Format the format string
... additional parameters which are used in the format string

Definition at line 793 of file User.cpp.

References FormatTime(), GetClientConnectionMultiplexer(), m_Log, CClientConnection::Privmsg(), and CLog::WriteLine().

Referenced by CIRCConnection::AddChannel(), and CIRCConnection::ParseLineArgV().

                                       {
      char *Out;
      va_list marker;

      va_start(marker, Format);
      vasprintf(&Out, Format, marker);
      va_end(marker);

      CHECK_ALLOC_RESULT(Out, vasprintf) {} else {
            if (GetClientConnectionMultiplexer() == NULL) {
                  m_Log->WriteLine(FormatTime(g_CurrentTime), "%s", Out);
            } else {
                  GetClientConnectionMultiplexer()->Privmsg(Out);
            }

            free(Out);
      } CHECK_ALLOC_RESULT_END;
}


Generated by  Doxygen 1.6.0   Back to index