diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-06 19:43:37 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-06 19:43:37 +0000 |
commit | 2462d4ff90d5444883f4981f0229e223fbf80057 (patch) | |
tree | ed33cf22bd40e772038570e7a27a709cafa0906d /src/map/chat.c | |
parent | 98e5e5302359c893d4889788c612116bda3efc0f (diff) | |
download | hercules-2462d4ff90d5444883f4981f0229e223fbf80057.tar.gz hercules-2462d4ff90d5444883f4981f0229e223fbf80057.tar.bz2 hercules-2462d4ff90d5444883f4981f0229e223fbf80057.tar.xz hercules-2462d4ff90d5444883f4981f0229e223fbf80057.zip |
- Corrected pc_checkitem not behaving correctly when you had more than one equip with a restricted card.
- Fixed non-chatroom owners being able to kick others from the chatroom.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12310 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chat.c')
-rw-r--r-- | src/map/chat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/chat.c b/src/map/chat.c index a01356205..19f265b27 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -273,7 +273,7 @@ int chat_kickchat(struct map_session_data* sd, const char* kickusername) cd = (struct chat_data *)map_id2bl(sd->chatID); - if( !cd ) + if( cd==NULL || (struct block_list *)sd != cd->owner ) return -1; ARR_FIND( 0, cd->users, i, strncmp(cd->usersd[i]->status.name, kickusername, NAME_LENGTH) == 0 ); |