Merge pull request #2 from gholms/mlocktweak-allchr
mlocktweaker: consider all mode characters
This commit is contained in:
commit
20a31ab093
|
@ -47,7 +47,9 @@ static void handle_channel_register(hook_channel_req_t *hdata)
|
||||||
target = &mc->mlock_on;
|
target = &mc->mlock_on;
|
||||||
it = str;
|
it = str;
|
||||||
|
|
||||||
switch(*it++ != '\0')
|
while (*it != '\0')
|
||||||
|
{
|
||||||
|
switch (*it)
|
||||||
{
|
{
|
||||||
case '+':
|
case '+':
|
||||||
target = &mc->mlock_on;
|
target = &mc->mlock_on;
|
||||||
|
@ -59,6 +61,8 @@ static void handle_channel_register(hook_channel_req_t *hdata)
|
||||||
*target |= mode_to_flag(*it);
|
*target |= mode_to_flag(*it);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
++it;
|
||||||
|
}
|
||||||
|
|
||||||
mc->mlock_off &= ~mc->mlock_on;
|
mc->mlock_off &= ~mc->mlock_on;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue