hungdluit / flowlib

Automatically exported from code.google.com/p/flowlib
0 stars 0 forks source link

UserInfo.IsOperator and .IsSetOp returns false #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
[2008-01-01 17:37] <Carraya> I still however get false for both IsOperator
and IsSetOp even after oplist is sent
[2008-01-01 17:37] <Carraya> in case Actions.OpUsers:
[2008-01-01 17:38] <Carraya> even for the ids in oplist I get false
[2008-01-01 17:41] <Flow84> hmm...
[2008-01-01 17:41] <Flow84> i may have forgot something in OnUpdate in Hub.
[2008-01-01 17:41] <Carraya> and I often get null for  u =
hub.GetUserById(oplist[i]);
[2008-01-01 17:42] <Carraya> actually almost all the time except for
chatrooms in ynhub
[2008-01-01 17:42] <Flow84> what even do you listen on?
[2008-01-01 17:42] <Carraya> one sec
[2008-01-01 17:42] <Carraya> hubConnection.Update += new
FlowLib.Events.FmdcEventHandler(Hub_InUpdate);

What is the expected output? What do you see instead?
Expected output is userinfo ui != null for hub.GetUserById(oplist[i]);
and true for UserInfo.IsOperator

What version of the product are you using? On what operating system?
SVN 100

                case Actions.OpUsers:
                    string[] oplist = (string[])e.Data;
                    for (int i = 0; i < oplist.GetUpperBound(0); i++)
                    {
                        u = hub.GetUserById(oplist[i]);

                        // FIX ME
                        if (u != null) // OFTEN NULL EXCEPT YnHub ChatRoom
                        {
                            // FIX ME
                            bool test = u.UserInfo.IsOperator; // always false
                            test = u.UserInfo.IsSetOP; // always false
                            userlist.Invoke(UserAddDelegate, new Object[] {
u.UserInfo });
                        }
                    }
                    break;

Please provide any additional information below.

Original issue reported on code.google.com by christ...@koyuk.dk on 1 Jan 2008 at 4:49

GoogleCodeExporter commented 8 years ago
Fixed in SVN 101.

Original comment by blomman84 on 1 Jan 2008 at 10:10

GoogleCodeExporter commented 8 years ago
All works in SVN 105

Original comment by blomman84 on 1 Jan 2008 at 10:31