Hi there...
here is my contribution:
added a gag feature to opendchub, to block unwanted
users to perform some operations inside the server
(hub) - we can specify which kind of block we want:
chat and/or download and/or search...
Description:
Howto gag a user:
!gag 'nick' 'type' or $gag 'nick' 'type'|
Howto to remove the gag from a gagged user:
!ungag 'nick' or $ungag 'nick'|
Displays a list with all gagged users
!getgaglist or $getgaglist|
type of gag:
* GAG_CHAT: blocks the user from sending messages to
main chat - gagged users are only allowed to send
private msgs to op or op_admin users
* GAG_SEARCH: blocks the user from searching files
inside the hub
* GAG_DOWNLOAD: blocks the user from downloading any
file from the hub (still under testing - but I think it
will do the trick as it is)
Scripting support:
odch::check_if_gagged(nick) returns '1' or '0'
odch::get_gag_type(nick) returns 'type'
odch::gag_user(nick, type)
odch::ungag_user(nick)
I'm sorry for the inconvenience, but for now I can only
provide the files inside my src dir, because I've
changed the ident on some of them and to provide a
patch file would be more or less the same :) , but I
promise to work on it... thanks
File size: 37098 bytes
Extract content of file to src dir (backup first)
I think that's all... any bugs or sugestions you can
send them directly to: bit@sapo.pt
--codewarior
files from the 'src' (source) directory