notice(s_GameServ, u, "People Playing:");
while(temp)
{
-
#ifdef P10
notice(s_GameServ, u, "IRC: %s Game: %s", temp->getData()->getRealNick(),
temp->getData()->stats->name);
{
notice(s_GameServ, u, "SYNTAX: /msg %S REGISTER NAME PASSWORD");
}
+ else if ((user = findplayer(name)))
+ {
+ notice(s_GameServ, u, "%s is already registered!", name);
+ notice(s_GameServ, u, "Choose another name!");
+ }
else if ((user = find(u)))
{
p = findplayer(u);
}
else if (!(p = findplayer(name)) || !p->stats)
notice(s_GameServ, u, "Player %s not found", name);
- else if (p->stats->user == NULL && !isAdmin(user))
+ else if (p->stats->user != NULL && !isAdmin(user))
{
notice(s_GameServ, u, "That player has already identified.");
return;
notice(s_GameServ, u, "Fatal error. Contact a(n) %S admin. buf: %s", strtok(NULL, ""));
return;
}
- else if (!(battle = findbyrealnick(nick)))
+ else if (!is_playing(ni))
{
- notice(s_GameServ, u, "You can't attack %s while they aren't playing!", nick);
+ notice(s_GameServ, u, "You are not playing!");
return;
}
- else if (!is_playing(ni))
+ else if (!(battle = findplayer(nick)))
{
- notice(s_GameServ, u, "You are not playing!");
+ notice(s_GameServ, u, "You can't attack %s while they aren't playing!", nick);
return;
}
/*
clearYourTurn(battle->stats);
// Initiate Battle sequence!
+ battle->stats->player_fights -= 1;
+
notice(s_GameServ, u, "You challenge %s to an online duel!", battle->stats->name);
notice(s_GameServ, battle->getNick(), "%s has challenged you to an online duel!", ni->stats->name);
- notice(s_GameServ, battle->getNick(), "%s gets to go first because he initiated!", ni->stats->name);
+ notice(s_GameServ, battle->getNick(), "%s gets to go first "\
+ "because they initiated!", ni->stats->name);
notice(s_GameServ, battle->getNick(), "Please wait while %s decides what to do.", ni->stats->name);
display_players(u);
}