Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
User Group Issue
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Parsov" data-source="post: 444445" data-attributes="member: 68429"><p>Hello there Devbest community! </p><p>A weird thing that I've been having for a long time now. Everytime a user makes a group a user automatically joins that group and has rights... Without even joining?</p><p></p><p>I did these:</p><p></p><p>[CODE=sql]SET@@global.sql_mode='';[/CODE]</p><p></p><p>Tried removing groups and then adding them again into the SQL.</p><p></p><p>Didn't help. I have a feeling it's because of the time of the VDS but I just want to be sure. </p><p></p><p>Thanks!</p><p>[automerge]1548934104[/automerge]</p><p>Added this into Groups but I don't think this is the thing causing it.</p><p></p><p>[CODE=csharp]public void CreateGroupChat(Group group)</p><p> {</p><p> if (group.HasChat == true)</p><p> return;</p><p> using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())</p><p> {</p><p> dbClient.SetQuery("UPDATE groups SET `has_chat` = '1' WHERE id = @gid");</p><p> dbClient.AddParameter("gid", group.Id);</p><p> dbClient.RunQuery();</p><p> }</p><p> group.HasChat = true;</p><p> List<GameClient> GroupMembers = (from Client in PlusEnvironment.GetGame().GetClientManager().GetClients.ToList() where Client != null && Client.GetHabbo() != null && this.IsMember(Client.GetHabbo().Id) select Client).ToList();</p><p> foreach (GameClient Client in GroupMembers)</p><p> {</p><p> if (Client == null)</p><p> continue;</p><p> Client.SendMessage(new FriendListUpdateComposer(group, 1));</p><p> }</p><p></p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="Parsov, post: 444445, member: 68429"] Hello there Devbest community! A weird thing that I've been having for a long time now. Everytime a user makes a group a user automatically joins that group and has rights... Without even joining? I did these: [CODE=sql]SET@@global.sql_mode='';[/CODE] Tried removing groups and then adding them again into the SQL. Didn't help. I have a feeling it's because of the time of the VDS but I just want to be sure. Thanks! [automerge]1548934104[/automerge] Added this into Groups but I don't think this is the thing causing it. [CODE=csharp]public void CreateGroupChat(Group group) { if (group.HasChat == true) return; using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor()) { dbClient.SetQuery("UPDATE groups SET `has_chat` = '1' WHERE id = @gid"); dbClient.AddParameter("gid", group.Id); dbClient.RunQuery(); } group.HasChat = true; List<GameClient> GroupMembers = (from Client in PlusEnvironment.GetGame().GetClientManager().GetClients.ToList() where Client != null && Client.GetHabbo() != null && this.IsMember(Client.GetHabbo().Id) select Client).ToList(); foreach (GameClient Client in GroupMembers) { if (Client == null) continue; Client.SendMessage(new FriendListUpdateComposer(group, 1)); } }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
User Group Issue
Top