- Timestamp:
- 08/13/08 12:45:56 (16 months ago)
- Location:
- branches/kane-hacking/DJabberd/lib/DJabberd
- Files:
-
- 1 added
- 2 modified
-
HookDocs.pm (modified) (1 diff)
-
Plugin/CheckUsername.pm (added)
-
VHost.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/kane-hacking/DJabberd/lib/DJabberd/HookDocs.pm
r807 r815 56 56 }; 57 57 58 58 $hook{'CheckUsername'} = { 59 des => "Check a provided username and see if it comforms to the username spec. Built-in spec is very limited, but can be extended usign this hook", 60 args => [ '$username', ], 61 callbacks => { 62 accept => [], 63 reject => [], 64 }, 65 }; 66 59 67 $hook{'pre_stanza_write'} = { 60 68 des => "Called before a stanza is written to a user. Default action if all declined is to just deliver it.", -
branches/kane-hacking/DJabberd/lib/DJabberd/VHost.pm
r811 r815 120 120 unless ($self->are_hooks("PresenceCheck")) { 121 121 $self->add_plugin(DJabberd::PresenceChecker::Local->new); 122 } 123 124 unless ($self->are_hooks("CheckUsername")) { 125 require DJabberd::Plugin::CheckUsername; 126 $self->add_plugin(DJabberd::Plugin::CheckUsername->new); 122 127 } 123 128 }
