mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
Basic implementation of KLINEs
This commit is contained in:
parent
1bc08f18b7
commit
4168eaafbb
5 changed files with 379 additions and 1 deletions
|
|
@ -107,6 +107,11 @@ var Commands = map[string]Command{
|
|||
oper: true,
|
||||
capabs: []string{"oper:local_kill"}, //TODO(dan): when we have S2S, this will be checked in the command handler itself
|
||||
},
|
||||
"KLINE": {
|
||||
handler: klineHandler,
|
||||
minParams: 1,
|
||||
oper: true,
|
||||
},
|
||||
"LIST": {
|
||||
handler: listHandler,
|
||||
minParams: 0,
|
||||
|
|
@ -210,6 +215,11 @@ var Commands = map[string]Command{
|
|||
minParams: 1,
|
||||
oper: true,
|
||||
},
|
||||
"UNKLINE": {
|
||||
handler: unKLineHandler,
|
||||
minParams: 1,
|
||||
oper: true,
|
||||
},
|
||||
"USER": {
|
||||
handler: userHandler,
|
||||
usablePreReg: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue