diff options
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r-- | src/protocol/unreal32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index ee906b1b8..7963ae6c8 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -449,14 +449,14 @@ class UnrealIRCdProto : public IRCDProto { char svidbuf[15]; - if (!u->nc) + if (!u->Account()) return; srand(time(NULL)); snprintf(svidbuf, sizeof(svidbuf), "%d", rand()); - u->nc->Shrink("authenticationtoken"); - u->nc->Extend("authenticationtoken", new ExtensibleItemPointerArray<char>(sstrdup(svidbuf))); + u->Account()->Shrink("authenticationtoken"); + u->Account()->Extend("authenticationtoken", new ExtensibleItemPointerArray<char>(sstrdup(svidbuf))); BotInfo *bi = findbot(Config.s_NickServ); u->SetMode(bi, UMODE_REGISTERED); |