diff options
Diffstat (limited to 'modules/commands/cs_register.cpp')
-rw-r--r-- | modules/commands/cs_register.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_register.cpp b/modules/commands/cs_register.cpp index 7528a96c0..28fb931f5 100644 --- a/modules/commands/cs_register.cpp +++ b/modules/commands/cs_register.cpp @@ -85,9 +85,9 @@ class CommandCSRegister : public Command { /* On most ircds you do not receive the admin/owner mode till its registered */ if ((cm = ModeManager::FindChannelModeByName(CMODE_OWNER))) - c->SetMode(NULL, cm, u->nick); + c->SetMode(NULL, cm, u->GetUID()); else if ((cm = ModeManager::FindChannelModeByName(CMODE_PROTECT))) - c->RemoveMode(NULL, cm, u->nick); + c->RemoveMode(NULL, cm, u->GetUID()); } /* Mark the channel as persistent */ |