[7023] Remove not used useCharges for IsImmunedToSpell/IsImmunedToDamage
[getmangos.git] / src / game / CalendarHandler.cpp
blob103da3eb9b75efdbb340c8c96a1ea2458528b707
1 /*
2 * Copyright (C) 2005-2009 MaNGOS <http://www.mangosproject.org/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #include "Common.h"
20 #include "Log.h"
21 #include "Player.h"
22 #include "WorldPacket.h"
23 #include "WorldSession.h"
24 #include "Opcodes.h"
26 void WorldSession::HandleCalendarGetCalendar(WorldPacket &recv_data)
28 sLog.outDebug("WORLD: CMSG_CALENDAR_GET_CALENDAR");
29 recv_data.hexlike();
32 void WorldSession::HandleCalendarGetEvent(WorldPacket &recv_data)
34 sLog.outDebug("WORLD: CMSG_CALENDAR_GET_EVENT");
35 recv_data.hexlike();
38 void WorldSession::HandleCalendarGuildFilter(WorldPacket &recv_data)
40 sLog.outDebug("WORLD: CMSG_CALENDAR_GUILD_FILTER");
41 recv_data.hexlike();
44 void WorldSession::HandleCalendarArenaTeam(WorldPacket &recv_data)
46 sLog.outDebug("WORLD: CMSG_CALENDAR_ARENA_TEAM");
47 recv_data.hexlike();
50 void WorldSession::HandleCalendarAddEvent(WorldPacket &recv_data)
52 sLog.outDebug("WORLD: CMSG_CALENDAR_ADD_EVENT");
53 recv_data.hexlike();
56 void WorldSession::HandleCalendarUpdateEvent(WorldPacket &recv_data)
58 sLog.outDebug("WORLD: CMSG_CALENDAR_UPDATE_EVENT");
59 recv_data.hexlike();
62 void WorldSession::HandleCalendarRemoveEvent(WorldPacket &recv_data)
64 sLog.outDebug("WORLD: CMSG_CALENDAR_REMOVE_EVENT");
65 recv_data.hexlike();
68 void WorldSession::HandleCalendarCopyEvent(WorldPacket &recv_data)
70 sLog.outDebug("WORLD: CMSG_CALENDAR_COPY_EVENT");
71 recv_data.hexlike();
74 void WorldSession::HandleCalendarEventInvite(WorldPacket &recv_data)
76 sLog.outDebug("WORLD: CMSG_CALENDAR_EVENT_INVITE");
77 recv_data.hexlike();
80 void WorldSession::HandleCalendarEventRsvp(WorldPacket &recv_data)
82 sLog.outDebug("WORLD: CMSG_CALENDAR_EVENT_RSVP");
83 recv_data.hexlike();
86 void WorldSession::HandleCalendarEventRemoveInvite(WorldPacket &recv_data)
88 sLog.outDebug("WORLD: CMSG_CALENDAR_EVENT_REMOVE_INVITE");
89 recv_data.hexlike();
92 void WorldSession::HandleCalendarEventStatus(WorldPacket &recv_data)
94 sLog.outDebug("WORLD: CMSG_CALENDAR_EVENT_STATUS");
95 recv_data.hexlike();
98 void WorldSession::HandleCalendarEventModeratorStatus(WorldPacket &recv_data)
100 sLog.outDebug("WORLD: CMSG_CALENDAR_EVENT_MODERATOR_STATUS");
101 recv_data.hexlike();
104 void WorldSession::HandleCalendarComplain(WorldPacket &recv_data)
106 sLog.outDebug("WORLD: CMSG_CALENDAR_COMPLAIN");
107 recv_data.hexlike();
110 void WorldSession::HandleCalendarGetNumPending(WorldPacket &recv_data)
112 sLog.outDebug("WORLD: CMSG_CALENDAR_GET_NUM_PENDING");
113 recv_data.hexlike();
115 WorldPacket data(SMSG_CALENDAR_SEND_NUM_PENDING, 4);
116 data << uint32(0); // 0 - no pending invites, 1 - some pending invites
117 SendPacket(&data);