diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-06-24 09:14:23 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-06-24 09:27:35 -0400 |
commit | b21dd603acb3f77f941db8457a544ebc62658569 (patch) | |
tree | 096f4cd6562a09e3674940980e3995f64b77a66d /src/map/script.c | |
parent | d382ab002074b76315bc9980bd8550fb778f51fb (diff) | |
download | hercules-b21dd603acb3f77f941db8457a544ebc62658569.tar.gz hercules-b21dd603acb3f77f941db8457a544ebc62658569.tar.bz2 hercules-b21dd603acb3f77f941db8457a544ebc62658569.tar.xz hercules-b21dd603acb3f77f941db8457a544ebc62658569.zip |
allow removechannelhandler to be called with attached rid
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index e0bdecd47..4150d3adb 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -23083,9 +23083,10 @@ BUILDIN(addchannelhandler) BUILDIN(removechannelhandler) { int i; + struct map_session_data *sd = map->id2sd(st->rid); const char *channelname = script_getstr(st, 2); const char *eventname = script_getstr(st, 3); - struct channel_data *chan = channel->search(channelname, NULL); + struct channel_data *chan = channel->search(channelname, sd); if (!chan) { script_pushint(st, 0); |