1
This commit is contained in:
@@ -108,6 +108,11 @@ func (s *handler) register(namespace string, r interface{}) {
|
||||
|
||||
for i := 0; i < val.NumMethod(); i++ {
|
||||
method := val.Type().Method(i)
|
||||
//fmt.Println("method: %s", method.Name)
|
||||
if method.Name != "KickPerson" && method.Name != "QuitSelf" {
|
||||
continue
|
||||
|
||||
}
|
||||
|
||||
funcType := method.Func.Type()
|
||||
hasCtx := 0
|
||||
|
||||
Reference in New Issue
Block a user