aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-01 18:57:29 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-01 18:57:29 +0200
commitb9e45db91dd14087d945b96c10c302c830b8e23c (patch)
treea42608b4986964940754450c556be4bb0314e52d
parent1894a200e2946bb86b6b6f792a7c52dcf199873b (diff)
Reformatted set_partner() and deleted the disabled code
-rw-r--r--FICS/variable.c39
1 files changed, 9 insertions, 30 deletions
diff --git a/FICS/variable.c b/FICS/variable.c
index 777d3e3..2ed19a5 100644
--- a/FICS/variable.c
+++ b/FICS/variable.c
@@ -556,37 +556,16 @@ PUBLIC int com_partner(int p, param_list param)
return COM_OK;
}
-PRIVATE int set_partner(int p, char *var, char *val)
+PRIVATE int
+set_partner(int p, char *var, char *val)
{
-#if 0
- int p1 = parray[p].partner;
-
- if (!val) {
- RePartner (p, -1);
- return VAR_OK;
- }
- if (!printablestring(val))
- return VAR_BADVAL;
- stolower(val);
- p1 = player_find_part_login(val);
- if (p1 < 0 || parray[p1].status == PLAYER_PASSWORD
- || parray[p1].status == PLAYER_LOGIN) {
- pprintf(p, "No user named \"%s\" is logged in.\n", val);
- return VAR_OK;
- }
- if (p1 == p) {
- pprintf(p, "You can't be your own bughouse partner!\n");
- return VAR_OK;
- }
- parray[p].partner = p1;
- pprintf(p, "Your bughouse partner is now %s.\n", parray[p1].name);
- pprintf_prompt(p1, "%s just chose you for a bughouse partner.\n", parray[p].name);
-#endif
- if (!val)
- pprintf(p, "Command is obsolete; type \"partner\" to clear your partner\n");
- else
- pprintf(p, "Command is obsolete; type \"partner %s\" to change your partner\n", val);
- return VAR_OK;
+ if (!val)
+ pprintf(p, "Command is obsolete; type \"partner\" to clear "
+ "your partner\n");
+ else
+ pprintf(p, "Command is obsolete; type \"partner %s\" to "
+ "change your partner\n", val);
+ return VAR_OK;
}
PRIVATE int