Skip to content

Commit 80eab45

Browse files
committed
Merge remote-tracking branch 'upstream/2.0' into 2.0
2 parents 49d82b2 + f526932 commit 80eab45

File tree

6 files changed

+24
-15
lines changed

6 files changed

+24
-15
lines changed

.github/workflows/ci-linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Ubuntu CI
22
on:
33
- pull_request
44
- push
5+
- workflow_dispatch
56
jobs:
67
build:
78
if: "!contains(github.event.head_commit.message, '[skip ubuntu ci]')"
@@ -10,7 +11,7 @@ jobs:
1011
CXX: ${{ matrix.compiler }}
1112
CXXFLAGS: -std=${{ matrix.standard }}
1213
steps:
13-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1415

1516
- name: Install dependencies
1617
run: |

.github/workflows/ci-windows.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
release:
66
types:
77
- published
8+
workflow_dispatch:
89
jobs:
910
build:
1011
if: "!contains(github.event.head_commit.message, '[skip windows ci]')"
@@ -14,7 +15,7 @@ jobs:
1415
CONAN_USER_HOME: ${{ github.workspace }}/win/build
1516
CONAN_USER_HOME_SHORT: None
1617
steps:
17-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1819

1920
- name: Setup NSIS
2021
run: |-
@@ -64,3 +65,10 @@ jobs:
6465
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6566
run: |
6667
gh release upload ${{ github.event.release.tag_name }} $(Get-ChildItem anope-*.exe)
68+
69+
- name: Upload artifact
70+
if: "${{ github.event_name != 'release' }}"
71+
uses: actions/upload-artifact@v5
72+
with:
73+
name: windows-installer
74+
path: ${{ github.workspace }}\build\\anope-*.exe

modules/commands/cs_enforce.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class CommandCSEnforce : public Command
5656
if (user->IsProtected())
5757
continue;
5858

59-
if (ci->AccessFor(user).empty())
59+
AccessGroup access = ci->AccessFor(user);
60+
if (!access.founder && access.empty())
6061
users.push_back(user);
6162
}
6263

@@ -201,7 +202,8 @@ class CommandCSEnforce : public Command
201202
if (user->IsProtected())
202203
continue;
203204

204-
if (!ci->AccessFor(user).empty())
205+
AccessGroup access = ci->AccessFor(user);
206+
if (access.founder || !access.empty())
205207
continue;
206208

207209
if (ci->c->users.size() - users.size() <= static_cast<unsigned>(l))

modules/commands/cs_mode.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ struct ModeLocksImpl : ModeLocks
110110

111111
if (m->name == mode->name)
112112
{
113+
if (m->set != status)
114+
continue;
115+
113116
// For list or status modes, we must check the parameter
114117
if (mode->type == MODE_LIST || mode->type == MODE_STATUS)
115118
if (m->param != param)

modules/extra/stats/irc2sql/irc2sql.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void IRC2SQL::OnSetDisplayedHost(User *u)
198198
void IRC2SQL::OnChannelCreate(Channel *c)
199199
{
200200
query = "INSERT INTO `" + prefix + "chan` (channel, topic, topicauthor, topictime, modes) "
201-
"VALUES (@channel@,@topic@,@topicauthor@,@topictime@,@modes@) "
201+
"VALUES (@channel@,@topic@,@topicauthor@,FROM_UNIXTIME(@topictime@),@modes@) "
202202
"ON DUPLICATE KEY UPDATE channel=VALUES(channel), topic=VALUES(topic),"
203203
"topicauthor=VALUES(topicauthor), topictime=VALUES(topictime), modes=VALUES(modes)";
204204
query.SetValue("channel", c->name);

modules/m_dns.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,12 +1011,6 @@ class ModuleDNS : public Module
10111011
{
10121012
MyManager manager;
10131013

1014-
Anope::string nameserver;
1015-
Anope::string ip;
1016-
int port;
1017-
1018-
std::vector<std::pair<Anope::string, short> > notify;
1019-
10201014
public:
10211015
ModuleDNS(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR), manager(this)
10221016
{
@@ -1039,14 +1033,15 @@ class ModuleDNS : public Module
10391033
{
10401034
Configuration::Block *block = conf->GetModule(this);
10411035

1042-
nameserver = block->Get<const Anope::string>("nameserver", "127.0.0.1");
1043-
timeout = block->Get<time_t>("timeout", "5");
1044-
ip = block->Get<const Anope::string>("ip", "0.0.0.0");
1045-
port = block->Get<int>("port", "53");
1036+
Anope::string nameserver = block->Get<const Anope::string>("nameserver", "127.0.0.1");
1037+
timeout = block->Get<time_t>("timeout", "5");
1038+
Anope::string ip = block->Get<const Anope::string>("ip", "0.0.0.0");
1039+
int port = block->Get<int>("port", "53");
10461040
admin = block->Get<const Anope::string>("admin", "[email protected]");
10471041
nameservers = block->Get<const Anope::string>("nameservers", "ns1.example.com");
10481042
refresh = block->Get<int>("refresh", "3600");
10491043

1044+
std::vector<std::pair<Anope::string, short> > notify;
10501045
for (int i = 0; i < block->CountBlock("notify"); ++i)
10511046
{
10521047
Configuration::Block *n = block->GetBlock("notify", i);

0 commit comments

Comments
 (0)