diff options
| author | 2022-04-12 00:52:10 +0100 | |
|---|---|---|
| committer | 2022-04-12 00:52:10 +0100 | |
| commit | fa8c035373a7c20a2f533ec565acd385fef2c7c9 (patch) | |
| tree | b12f69b93c3ce4b13435a231dfbbcb2af80f1d97 /src/modules/m_spanningtree/main.cpp | |
| parent | Fix using notices instead of the appropriate numerics in rmode. (diff) | |
Use ERR_UNAVAILRESOURCE for things that should be retried later.
Also move it to the global numerics header to avoid duplication.
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 614c7cd83..49f5dc920 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -376,7 +376,7 @@ ModResult ModuleSpanningTree::OnPreTopicChange(User* user, Channel* chan, const // other servers will drop our FTOPIC. This restriction will be removed when the protocol is updated. if ((chan->topicset >= ServerInstance->Time()) && (Utils->serverlist.size() > 1)) { - user->WriteNumeric(ERR_CHANOPRIVSNEEDED, chan->name, "Retry topic change later"); + user->WriteNumeric(ERR_UNAVAILRESOURCE, chan->name, "Retry topic change later"); return MOD_RES_DENY; } return MOD_RES_PASSTHRU; |
