From 1a28c9c768f85b76c4e38aadf3dc128b1c877f2c Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 7 Jun 2012 20:14:58 +0200 Subject: Make m_cap.h a bit cleverer --- src/modules/m_cap.h | 9 +++------ 1 file 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); -- cgit v1.2.3