1
0
Fork 0
forked from External/ergo

Add very initial ChanServ and NickServ virtual clients

As well, add channel registration and re-applying founder privs on the first client joining the channel. I'm going to re-architect our modes system to better acocunt for this sort of change.
This commit is contained in:
Daniel Oaks 2017-03-11 22:01:40 +10:00
parent 439331cfb8
commit b33b217fab
10 changed files with 343 additions and 31 deletions

View file

@ -74,6 +74,14 @@ var Commands = map[string]Command{
usablePreReg: true,
minParams: 1,
},
"CHANSERV": {
handler: csHandler,
minParams: 1,
},
"CS": {
handler: csHandler,
minParams: 1,
},
"DEBUG": {
handler: debugHandler,
minParams: 1,
@ -143,6 +151,10 @@ var Commands = map[string]Command{
usablePreReg: true,
minParams: 1,
},
"NICKSERV": {
handler: nsHandler,
minParams: 1,
},
"NOTICE": {
handler: noticeHandler,
minParams: 2,
@ -155,6 +167,10 @@ var Commands = map[string]Command{
handler: npcaHandler,
minParams: 3,
},
"NS": {
handler: nsHandler,
minParams: 1,
},
"OPER": {
handler: operHandler,
minParams: 2,