summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-18 22:16:54 -0200
committershennetsind <ind@henn.et>2013-11-18 22:16:54 -0200
commit39f1ad79f93bfc72aa6c9512c21e92d52c983426 (patch)
tree6f941b7df0cc53d2a44e4efd6bd1fe5366f1660f /src/map/chrif.c
parentea7dd2157c6d92eb42da567032578ad47e790a8e (diff)
downloadhercules-39f1ad79f93bfc72aa6c9512c21e92d52c983426.tar.gz
hercules-39f1ad79f93bfc72aa6c9512c21e92d52c983426.tar.bz2
hercules-39f1ad79f93bfc72aa6c9512c21e92d52c983426.tar.xz
hercules-39f1ad79f93bfc72aa6c9512c21e92d52c983426.zip
Follow up aee2f6317e1c927847993801b5973d7e2e27a418
Fixed glitch that'd occur in clients with login screen where even after logging out the client would still remember previously sent banned timestamps, keeping the char banned until client was reopened. Also dropped a error message map server would show up when banning offline characters. Special Thanks to Mvmbles for pointing it out, Haruna for testing and helping fix it. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 8e6034ef2..5927e31bf 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -979,8 +979,8 @@ int chrif_idbanned(int fd) {
sd = ( RFIFOB(fd,6) == 2 ) ? map->charid2sd(id) : map->id2sd(id);
- if ( id < 0 || sd == NULL ) {/* ?___? is this worth showing a error for? you might wanna ban a player that is not online, this is not a error and the operation is still valid */
- ShowError("chrif_idbanned failed - player not online.\n");
+ if ( id < 0 || sd == NULL ) {
+ /* player not online or unknown id, either way no error is necessary (since if you try to ban a offline char it still works) */
return 0;
}