hi,
i am quite new to C++ and did only java before,so i dont get all of the source code.
my question is:
how do i do it,that dc++ users dont appear as "blue" in my userlist.i tried to figure it out myself,but only ended up confused.
User List
Moderator: Moderators
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
I know nothing about the code and am in a similar place to you, but I think the following code from HubFrame.h might be useful.
I'm sure somone familiar with the code is going to come along and completely laugh at me.
Code: Select all
int getImage(const User::Ptr& u) {
int image = u->isSet(User::OP) ? IMAGE_OP : IMAGE_USER;
if(u->isSet(User::DCPLUSPLUS))
image+=2;
if(u->isSet(User::PASSIVE)) {
image+=4;
}
return image;
}
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
Code: Select all
int getImage(const User::Ptr& u) {
int image = u->isSet(User::OP) ? IMAGE_OP : IMAGE_USER;
//if(u->isSet(User::DCPLUSPLUS))
//image+=2;
if(u->isSet(User::PASSIVE)) {
image+=4;
}
return image;
}
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37