View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001604 | unreal | ircd | public | 2004-02-28 08:41 | 2004-03-04 18:10 |
Reporter | satmd | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | any | OS | any | OS Version | any |
Product Version | 3.2-RC1 | ||||
Summary | 0001604: Hook request | ||||
Description | I'm requesting a hook which can whitelist a user when joining a channel. Just like HOOKTYPE_PRE_LOCAL_JOIN, but called BEFORE can_join. OR Have HOOKTYPE_PRE_LOCAL_JOIN being called BEFORE can_join | ||||
Additional Information | This would be useful for me twice: - I can implement channelmode +I usermask myself as a module - I can implement a channelmode +B #channel2 which would work like +L #channel2 but for banned users... also without modifying the source | ||||
Tags | No tags attached. | ||||
3rd party modules | |||||
|
I think the latter is probably the best way to go. Something like instead of return 1/0 you return (HOOK_ALLOW, HOOK_DENY, HOOK_CONTINUE) to either allow the user to join, deny it, or continue checking if other hooks will deny it (or if can_join will deny it). As for your other things. As of now there is no method for you to implement something like the +I mode. |
|
If we don't break current modules, like 1=allow, 0=deny and -1=continue... (so like the idea of above) then I think it would be a good idea (easy change too). And yeah, list stuff isn't exactly on my list atm... won't be done anytime soon at least... it's also not something which is often needed, besides +I most list thingies were about bans.. (like realname bans) which can now use the (better) extbans system. |
|
Added in .2158 |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-02-28 08:41 | satmd | New Issue | |
2004-02-28 12:03 |
|
Note Added: 0005244 | |
2004-02-28 13:11 | syzop | Note Added: 0005246 | |
2004-03-04 18:10 |
|
Status | new => resolved |
2004-03-04 18:10 |
|
Resolution | open => fixed |
2004-03-04 18:10 |
|
Assigned To | => codemastr |
2004-03-04 18:10 |
|
Note Added: 0005297 |