00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef USE_PCH
00017 #include "sys.h"
00018 #include "debug.h"
00019 #endif
00020
00021 #include "NoticeTarget.h"
00022 #include "MessageIn.h"
00023 #include "keys.h"
00024
00025
00026
00027
00028
00029 void NoticeTarget::new_client_message_received(ClientMessageIn const& msg)
00030 {
00031 DoutEntering(dc::debug, "NoticeTarget::new_client_message_received(" << msg << ") for target \"" << in_name(msg.client_session()) << "\".");
00032
00033 switch(msg.key())
00034 {
00035 using namespace keys;
00036 #ifdef CWDEBUG
00037 case WHO:
00038 DoutFatal(dc::core, "WHO should be handled by calling PrivateTarget::handle_who");
00039 break;
00040 #endif
00041 default:
00042 PrivateTarget::new_client_message_received(msg);
00043 break;
00044 }
00045 }