Quit Class ReferenceCommand: bye bye.
More...
|
Public Member Functions | |
Quit () | |
void | Execute (InSocket *, const std::string ¶ms, Parse &) |
Execute command. | |
std::string | Category () |
Get command category. |
Definition at line 28 of file Quit.h.
void Quit::Execute | ( | InSocket * | , | |
const std::string & | arg, | |||
Parse & | ||||
) | [virtual] |
Execute command.
Implements Command.
Definition at line 25 of file Quit.cpp.
References Player::GetDisplayName().
00026 { 00027 Player pl(from -> GetDatabase(),from -> GetAccountName()); 00028 from -> Send("Thanks for visiting\n"); 00029 from -> GlobalEvent(pl.GetDisplayName() + " exits."); 00030 from -> SetCloseAndDelete(); 00031 }
std::string Quit::Category | ( | ) | [inline, virtual] |