From fdbd5e86a63322b2c341c6879551102e8f48ad9c Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sat, 21 Aug 2010 21:36:39 +0000 Subject: some cleaning on kvichannel + maybe compilation fix git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4923 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/chan/libkvichan.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/modules') diff --git a/src/modules/chan/libkvichan.cpp b/src/modules/chan/libkvichan.cpp index 41ab4e542..7d43b9a0c 100644 --- a/src/modules/chan/libkvichan.cpp +++ b/src/modules/chan/libkvichan.cpp @@ -498,7 +498,7 @@ static bool chan_kvs_fnc_bancount(KviKvsModuleFunctionCall * c) KVSM_PARAMETER("window id",KVS_PT_STRING,KVS_PF_OPTIONAL,szId) KVSM_PARAMETERS_END(c) KviChannel * ch = chan_kvs_find_channel(c,szId); - if (ch) c->returnValue()->setInteger(ch->banCount()); + if (ch) c->returnValue()->setInteger(ch->maskCount('b')); return true; } @@ -529,7 +529,7 @@ static bool chan_kvs_fnc_banexceptioncount(KviKvsModuleFunctionCall * c) KVSM_PARAMETER("window id",KVS_PT_STRING,KVS_PF_OPTIONAL,szId) KVSM_PARAMETERS_END(c) KviChannel * ch = chan_kvs_find_channel(c,szId); - if (ch) c->returnValue()->setInteger(ch->banExceptionCount()); + if (ch) c->returnValue()->setInteger(ch->maskCount('e')); return true; } @@ -560,7 +560,7 @@ static bool chan_kvs_fnc_invitecount(KviKvsModuleFunctionCall * c) KVSM_PARAMETER("window id",KVS_PT_STRING,KVS_PF_OPTIONAL,szId) KVSM_PARAMETERS_END(c) KviChannel * ch = chan_kvs_find_channel(c,szId); - if (ch) c->returnValue()->setInteger(ch->inviteCount()); + if (ch) c->returnValue()->setInteger(ch->maskCount('I')); return true; } @@ -1249,7 +1249,7 @@ static bool chan_kvs_fnc_banlist(KviKvsModuleFunctionCall * c) int idx = 0; - KviPointerList * l = ch->banList(); + KviPointerList * l = ch->modeMasks('b'); if(!l) return true; for(KviMaskEntry * e = l->first();e;e = l->next()) @@ -1296,7 +1296,7 @@ static bool chan_kvs_fnc_banexceptionlist(KviKvsModuleFunctionCall * c) int idx = 0; - KviPointerList * l = ch->banExceptionList(); + KviPointerList * l = ch->modeMasks('e'); if(!l) return true; for(KviMaskEntry * e = l->first();e;e = l->next()) @@ -1343,7 +1343,7 @@ static bool chan_kvs_fnc_invitelist(KviKvsModuleFunctionCall * c) int idx = 0; - KviPointerList * l = ch->inviteList(); + KviPointerList * l = ch->modeMasks('I'); if(!l) return true; for(KviMaskEntry * e = l->first();e;e = l->next()) @@ -1438,7 +1438,7 @@ static bool chan_kvs_fnc_matchban(KviKvsModuleFunctionCall * c) return true; } - KviPointerList * l = ch->banList(); + KviPointerList * l = ch->modeMasks('b'); if(!l) { c->returnValue()->setNothing(); @@ -1491,7 +1491,7 @@ static bool chan_kvs_fnc_matchbanexception(KviKvsModuleFunctionCall * c) return true; } - KviPointerList * l = ch->banExceptionList(); + KviPointerList * l = ch->modeMasks('e'); if(!l) { c->returnValue()->setNothing(); @@ -1544,7 +1544,7 @@ static bool chan_kvs_fnc_matchinvite(KviKvsModuleFunctionCall * c) return true; } - KviPointerList * l = ch->inviteList(); + KviPointerList * l = ch->modeMasks('I'); if(!l) { c->returnValue()->setNothing(); @@ -1604,7 +1604,7 @@ static bool chan_kvs_fnc_matchqban(KviKvsModuleFunctionCall * c) return true; } - KviPointerList * l = ch->banList(); + KviPointerList * l = ch->modeMasks('b'); if(!l) { c->returnValue()->setNothing(); -- cgit v1.3.1-10-gc9f91