Commit 022efacb authored by ecki's avatar ecki
Browse files

függvények kiegészítve

parent 3df6155d
......@@ -22,19 +22,27 @@ func (t *ControlInterface) LoggedIntoCtr(args int, reply *int) error {
if err != nil {
return err
}
fmt.Println(args, "logged in", u.Username)
fmt.Println(u.Username, "logged into", args)
*reply = 0
return nil
}
func (t *ControlInterface) ExitedCtr(args int, reply *int) error {
fmt.Println(args, "Exited")
u, err := user.LookupId(fmt.Sprint(t.Creds.Uid))
if err != nil {
return err
}
fmt.Println(u.Username, "Exited", args)
*reply = 0
return nil
}
func (t *ControlInterface) UsingTooMuchRes(args int, reply *int) error {
fmt.Println(args, "bad boy")
u, err := user.LookupId(fmt.Sprint(t.Creds.Uid))
if err != nil {
return err
}
fmt.Println(u.Username, "bad boy", args)
*reply = 0
return nil
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment