summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-14 18:20:02 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-14 18:20:02 +0200
commit48f7fa6b11a0a6b1526c54914e60ddbe51ede8c4 (patch)
tree2f913e22d7de15e80b8a269bb4213bfd3d7b1406 /src/users.cpp
parentf8127cf8c51d7991e4cf809f161701aac5276975 (diff)
Extract UID/SID generation logic into a new class: UIDGenerator
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index c53fb7853..899ccecc6 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -215,7 +215,7 @@ User::User(const std::string &uid, const std::string& sid, int type)
}
LocalUser::LocalUser(int myfd, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* servaddr)
- : User(ServerInstance->GetUID(), ServerInstance->Config->ServerName, USERTYPE_LOCAL), eh(this),
+ : User(ServerInstance->UIDGen.GetUID(), ServerInstance->Config->ServerName, USERTYPE_LOCAL), eh(this),
localuseriter(ServerInstance->Users->local_users.end()),
bytes_in(0), bytes_out(0), cmds_in(0), cmds_out(0), nping(0), CommandFloodPenalty(0),
already_sent(0)