fixed issue with character register
This commit is contained in:
parent
a9ecba8bc3
commit
944dd4eece
@ -40,8 +40,11 @@ bool RPGModule::messageHandler(Message msg)
|
||||
if(charList.get(paramList[2].toStdString()) != NULL)
|
||||
answer = privateSay(QString("ERROR : Character name \"%1\" already exists").arg(paramList[2]), msg.nick);
|
||||
else
|
||||
{
|
||||
answer = privateSay(QString("successfully created the character \"%1\"").arg(paramList[2]), msg.nick);
|
||||
charList.add(paramList[2].toStdString(), new RPGCharacter(paramList[2], paramList[3]));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if(msg.args.startsWith("!rpg join ") == 0 && !msg.target.contains(getChan()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user