mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Make m_cap.h a bit cleverer
This commit is contained in:
parent
6e5a68a30d
commit
1a28c9c768
@ -59,19 +59,16 @@ class GenericCap
|
||||
ext.set(data->user, 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (ev.id == "cap_ls")
|
||||
else if (ev.id == "cap_ls")
|
||||
{
|
||||
data->wanted.push_back(cap);
|
||||
}
|
||||
|
||||
if (ev.id == "cap_list")
|
||||
else if (ev.id == "cap_list")
|
||||
{
|
||||
if (ext.get(data->user))
|
||||
data->wanted.push_back(cap);
|
||||
}
|
||||
|
||||
if (ev.id == "cap_clear")
|
||||
else if (ev.id == "cap_clear")
|
||||
{
|
||||
data->ack.push_back("-" + cap);
|
||||
ext.set(data->user, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user