fixed crash
This commit is contained in:
parent
ea2090d0c7
commit
45a115c74c
@ -17,7 +17,9 @@ MMOkobanModule::MMOkobanModule() :
|
|||||||
|
|
||||||
bool MMOkobanModule::messageHandler(Message msg)
|
bool MMOkobanModule::messageHandler(Message msg)
|
||||||
{
|
{
|
||||||
if(!getUsers()->getFromNick(msg.nick)->isOp())
|
User* user = getUsers()->getFromNick(msg.nick);
|
||||||
|
|
||||||
|
if(user == nullptr || !user->isOp())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if(msg.args.startsWith("!mmokoban"))
|
if(msg.args.startsWith("!mmokoban"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user