summaryrefslogtreecommitdiff
path: root/games/crossfire-server/patches/patch-server-c_wiz.c
blob: 52a29a77b653e8cfd469d38b7134cfa486e741e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-server-c_wiz.c,v 1.1 2011/08/20 15:32:48 joerg Exp $

--- server/c_wiz.c.orig	2011-08-20 14:21:07.000000000 +0000
+++ server/c_wiz.c
@@ -2134,17 +2134,17 @@ int command_follow(object* op, char* par
             draw_ext_info_format(NDI_UNIQUE, 0, op, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_DM, "You stop following %s.", NULL, op->contr->followed_player);
             FREE_AND_CLEAR_STR(op->contr->followed_player);
         }
-        return;
+        return 1;
     }
 
     other = find_player_partial_name(params);
     if (!other) {
         draw_ext_info(NDI_UNIQUE, 0, op, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_DM, "No such player or ambiguous name.", NULL);
-        return;
+        return 1;
     }
     if (other == op->contr) {
         draw_ext_info(NDI_UNIQUE, 0, op, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_DM, "You can't follow yourself.", NULL);
-        return;
+        return 1;
     }
 
     if (op->contr->followed_player)
@@ -2152,4 +2152,5 @@ int command_follow(object* op, char* par
 
     op->contr->followed_player = add_string(other->ob->name);
     draw_ext_info_format(NDI_UNIQUE, 0, op, MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_DM, "Following %s.", NULL, op->contr->followed_player);
+    return 1;
 }