diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-06-07 20:14:58 +0200 |
---|---|---|
committer | Sir Poggles <sir.pogsalot@gmail.com> | 2012-06-12 22:49:29 -0700 |
commit | 1a28c9c768f85b76c4e38aadf3dc128b1c877f2c (patch) | |
tree | e81d23dce59caa901c08bf75932b649defdbcc6b /src/modules | |
parent | 6e5a68a30d2f8582593aa50267464b786f134f8d (diff) |
Make m_cap.h a bit cleverer
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_cap.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_cap.h b/src/modules/m_cap.h index 0fc782b97..604fdb0ef 100644 --- a/src/modules/m_cap.h +++ b/src/modules/m_cap.h @@ -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); |