From: <mm...@us...> - 2007-10-23 07:11:50
|
Revision: 296 http://libirc.svn.sourceforge.net/libirc/?rev=296&view=rev Author: mm_202 Date: 2007-10-23 00:11:48 -0700 (Tue, 23 Oct 2007) Log Message: ----------- Fixed a stupid spelling mistake, Permisions -> Permissions. Modified Paths: -------------- trunk/libirc/examples/stupidBot/src/stupidBot.cpp trunk/libirc/include/IRCClient.h trunk/libirc/include/IRCUserManager.h trunk/libirc/src/IRCClient.cpp trunk/libirc/src/IRCUserManager.cpp Modified: trunk/libirc/examples/stupidBot/src/stupidBot.cpp =================================================================== --- trunk/libirc/examples/stupidBot/src/stupidBot.cpp 2007-10-23 06:58:03 UTC (rev 295) +++ trunk/libirc/examples/stupidBot/src/stupidBot.cpp 2007-10-23 07:11:48 UTC (rev 296) @@ -1145,7 +1145,7 @@ if (channel.size()) { - trIRCChannelPermisions perms = client.getChanPerms(channel); + trIRCChannelPermissions perms = client.getChanPerms(channel); std::string message = from + ", " +channel + " mode is " + perms.mode; client.sendMessage(respondTo,message); @@ -1211,7 +1211,7 @@ if ( userManager.userIsIdentified(userID) ) client.sendMessage(respondTo,"and is identified"); - trIRCUserPermisions perms = userManager.getUserPerms(userID); + trIRCUserPermissions perms = userManager.getUserPerms(userID); if (perms.mode.size()) client.sendMessage(respondTo,std::string("MODE is set to \"") + perms.mode + "\""); @@ -1276,7 +1276,7 @@ message += std::string(" ") + *(itr++); client.sendMessage(respondTo,message); - trIRCChannelPermisions perms = userManager.getChannelPerms(chanID); + trIRCChannelPermissions perms = userManager.getChannelPerms(chanID); if (perms.mode.size()) client.sendMessage(respondTo,std::string("MODE is set to \"") + perms.mode + "\""); Modified: trunk/libirc/include/IRCClient.h =================================================================== --- trunk/libirc/include/IRCClient.h 2007-10-23 06:58:03 UTC (rev 295) +++ trunk/libirc/include/IRCClient.h 2007-10-23 07:11:48 UTC (rev 296) @@ -162,7 +162,7 @@ virtual string_list listChannels ( void ); virtual string_list listChanOps ( std::string channel ); - virtual trIRCChannelPermisions getChanPerms ( std::string channel ); + virtual trIRCChannelPermissions getChanPerms ( std::string channel ); IRCUserManager& getUserManager ( void ){return userManager;} Modified: trunk/libirc/include/IRCUserManager.h =================================================================== --- trunk/libirc/include/IRCUserManager.h 2007-10-23 06:58:03 UTC (rev 295) +++ trunk/libirc/include/IRCUserManager.h 2007-10-23 07:11:48 UTC (rev 296) @@ -39,7 +39,7 @@ bool ctcpReceipt; bool away; bool idle; -}trIRCUserPermisions; +}trIRCUserPermissions; typedef struct { @@ -47,7 +47,7 @@ bool chanOp; bool voice; bool quieted; -}trIRCChannelUserPermisions; +}trIRCChannelUserPermissions; typedef struct { @@ -65,14 +65,14 @@ bool regOnly; bool secret; bool reducedModeraton; -}trIRCChannelPermisions; +}trIRCChannelPermissions; typedef struct { int id; std::string name; - trIRCChannelPermisions perms; - std::map<int,trIRCChannelUserPermisions>userPerms; + trIRCChannelPermissions perms; + std::map<int,trIRCChannelUserPermissions>userPerms; std::string lastMessage; int lastMessageUser; std::string topic; @@ -88,7 +88,7 @@ int lastMessageChannel; std::string lastMessage; - trIRCUserPermisions perms; + trIRCUserPermissions perms; std::vector<int> channels; }trIRCUserRecord; @@ -116,8 +116,8 @@ std::string getUserLastMessageChannelName ( int id ); std::string getUserLastMessageChannelName ( std::string &name ); - trIRCUserPermisions getUserPerms ( int id ); - trIRCUserPermisions getUserPerms ( std::string &name ); + trIRCUserPermissions getUserPerms ( int id ); + trIRCUserPermissions getUserPerms ( std::string &name ); std::vector<int> listUsers ( void ); std::vector<std::string> listUserNames ( void ); @@ -131,10 +131,10 @@ bool userInChannel ( std::string &name, int channel ); bool userInChannel ( std::string &name, std::string& channel ); - trIRCChannelUserPermisions getUserChannelPerms ( int id, int channel ); - trIRCChannelUserPermisions getUserChannelPerms ( int id, std::string& channel ); - trIRCChannelUserPermisions getUserChannelPerms ( std::string &name, int channel ); - trIRCChannelUserPermisions getUserChannelPerms ( std::string &name, std::string& channel ); + trIRCChannelUserPermissions getUserChannelPerms ( int id, int channel ); + trIRCChannelUserPermissions getUserChannelPerms ( int id, std::string& channel ); + trIRCChannelUserPermissions getUserChannelPerms ( std::string &name, int channel ); + trIRCChannelUserPermissions getUserChannelPerms ( std::string &name, std::string& channel ); bool userIsIdentified ( int id ); bool userIsIdentified ( std::string &name ); @@ -161,8 +161,8 @@ int getChannelID ( std::string &channel ); std::string getChannelName ( int id ); - trIRCChannelPermisions getChannelPerms ( int id ); - trIRCChannelPermisions getChannelPerms ( std::string &channel ); + trIRCChannelPermissions getChannelPerms ( int id ); + trIRCChannelPermissions getChannelPerms ( std::string &channel ); std::string getChannelTopic ( int id ); std::string getChannelTopic( std::string &channel ); @@ -231,13 +231,13 @@ std::string getCleanNick ( std::string &nick ); std::string getCleanChanName ( std::string &name ); - void setDefaultUserPerms ( trIRCUserPermisions &perms ); - void setDefaultChannelPerms ( trIRCChannelPermisions &perms ); - void setDefaultChannelUserPerms ( trIRCChannelUserPermisions &perms ); + void setDefaultUserPerms ( trIRCUserPermissions &perms ); + void setDefaultChannelPerms ( trIRCChannelPermissions &perms ); + void setDefaultChannelUserPerms ( trIRCChannelUserPermissions &perms ); - void parseUserPerms ( std::string mode, trIRCUserPermisions &perms ); - void parseChannelPerms ( std::string mode, trIRCChannelPermisions &perms ); - void parseChannelUserPerms ( std::string mode, trIRCChannelUserPermisions &perms ); + void parseUserPerms ( std::string mode, trIRCUserPermissions &perms ); + void parseChannelPerms ( std::string mode, trIRCChannelPermissions &perms ); + void parseChannelUserPerms ( std::string mode, trIRCChannelUserPermissions &perms ); void removeChannelFromUser ( int user, int channel ); Modified: trunk/libirc/src/IRCClient.cpp =================================================================== --- trunk/libirc/src/IRCClient.cpp 2007-10-23 06:58:03 UTC (rev 295) +++ trunk/libirc/src/IRCClient.cpp 2007-10-23 07:11:48 UTC (rev 296) @@ -704,7 +704,7 @@ return userManager.listChannelNames(); } -trIRCChannelPermisions IRCClient::getChanPerms ( std::string channel ) +trIRCChannelPermissions IRCClient::getChanPerms ( std::string channel ) { return userManager.getChannelPerms(channel); } Modified: trunk/libirc/src/IRCUserManager.cpp =================================================================== --- trunk/libirc/src/IRCUserManager.cpp 2007-10-23 06:58:03 UTC (rev 295) +++ trunk/libirc/src/IRCUserManager.cpp 2007-10-23 07:11:48 UTC (rev 296) @@ -142,9 +142,9 @@ return std::string(""); } -trIRCUserPermisions IRCUserManager::getUserPerms ( int id ) +trIRCUserPermissions IRCUserManager::getUserPerms ( int id ) { - trIRCUserPermisions perms; + trIRCUserPermissions perms; trIRCUserRecord &info = getUserInfo(id); if (info.lastMessage.size()) @@ -153,9 +153,9 @@ return perms; } -trIRCUserPermisions IRCUserManager::getUserPerms ( std::string &name ) +trIRCUserPermissions IRCUserManager::getUserPerms ( std::string &name ) { - trIRCUserPermisions perms; + trIRCUserPermissions perms; trIRCUserRecord &info = getUserInfo(name); if (info.lastMessage.size()) @@ -229,25 +229,25 @@ return channelRecord.userPerms.find(getUserID(name)) != channelRecord.userPerms.end(); } -trIRCChannelUserPermisions IRCUserManager::getUserChannelPerms ( int id, int channel ) +trIRCChannelUserPermissions IRCUserManager::getUserChannelPerms ( int id, int channel ) { trIRCChannelRecord &channelRecord = getChannelInfo(channel); return channelRecord.userPerms.find(id)->second; } -trIRCChannelUserPermisions IRCUserManager::getUserChannelPerms ( int id, std::string& channel ) +trIRCChannelUserPermissions IRCUserManager::getUserChannelPerms ( int id, std::string& channel ) { trIRCChannelRecord &channelRecord = getChannelInfo(channel); return channelRecord.userPerms.find(id)->second; } -trIRCChannelUserPermisions IRCUserManager::getUserChannelPerms ( std::string &name, int channel ) +trIRCChannelUserPermissions IRCUserManager::getUserChannelPerms ( std::string &name, int channel ) { trIRCChannelRecord &channelRecord = getChannelInfo(channel); return channelRecord.userPerms.find(getUserID(name))->second; } -trIRCChannelUserPermisions IRCUserManager::getUserChannelPerms ( std::string &name, std::string& channel ) +trIRCChannelUserPermissions IRCUserManager::getUserChannelPerms ( std::string &name, std::string& channel ) { trIRCChannelRecord &channelRecord = getChannelInfo(channel); return channelRecord.userPerms.find(getUserID(name))->second; @@ -395,12 +395,12 @@ return getChannelInfo(id).name; } -trIRCChannelPermisions IRCUserManager::getChannelPerms ( int id ) +trIRCChannelPermissions IRCUserManager::getChannelPerms ( int id ) { return getChannelInfo(id).perms; } -trIRCChannelPermisions IRCUserManager::getChannelPerms ( std::string &channel ) +trIRCChannelPermissions IRCUserManager::getChannelPerms ( std::string &channel ) { return getChannelInfo(channel).perms; } @@ -450,7 +450,7 @@ trIRCChannelRecord &channel = getChannelInfo(id); std::vector<int> userList; - std::map<int,trIRCChannelUserPermisions>::iterator itr = channel.userPerms.begin(); + std::map<int,trIRCChannelUserPermissions>::iterator itr = channel.userPerms.begin(); while ( itr != channel.userPerms.end() ) userList.push_back((itr++)->first); @@ -462,7 +462,7 @@ trIRCChannelRecord &channel = getChannelInfo(name); std::vector<int> userList; - std::map<int,trIRCChannelUserPermisions>::iterator itr = channel.userPerms.begin(); + std::map<int,trIRCChannelUserPermissions>::iterator itr = channel.userPerms.begin(); while ( itr != channel.userPerms.end() ) userList.push_back((itr++)->first); @@ -474,7 +474,7 @@ trIRCChannelRecord &channel = getChannelInfo(id); std::vector<std::string> userList; - std::map<int,trIRCChannelUserPermisions>::iterator itr = channel.userPerms.begin(); + std::map<int,trIRCChannelUserPermissions>::iterator itr = channel.userPerms.begin(); while ( itr != channel.userPerms.end() ) userList.push_back(getUserNick((itr++)->first)); @@ -486,7 +486,7 @@ trIRCChannelRecord &channel = getChannelInfo(name); std::vector<std::string> userList; - std::map<int,trIRCChannelUserPermisions>::iterator itr = channel.userPerms.begin(); + std::map<int,trIRCChannelUserPermissions>::iterator itr = channel.userPerms.begin(); while ( itr != channel.userPerms.end() ) userList.push_back(getUserNick((itr++)->first)); @@ -510,7 +510,7 @@ trIRCChannelRecord &channelRecord = getChannelInfo(channel); trIRCUserRecord &userRecord = getUserInfo(user); - trIRCChannelUserPermisions perms; + trIRCChannelUserPermissions perms; setDefaultChannelUserPerms(perms); channelRecord.userPerms[userRecord.id] = perms; @@ -524,7 +524,7 @@ std::string nick = getUserNick(user); trIRCUserRecord &userRecord = getUserInfo(nick); - trIRCChannelUserPermisions perms; + trIRCChannelUserPermissions perms; setDefaultChannelUserPerms(perms); channelRecord.userPerms[userRecord.id] = perms; @@ -538,7 +538,7 @@ std::string nick = getCleanNick(user); trIRCUserRecord &userRecord = getUserInfo(nick); - trIRCChannelUserPermisions perms; + trIRCChannelUserPermissions perms; setDefaultChannelUserPerms(perms); if ( user[0] == '@') @@ -558,7 +558,7 @@ std::string nick = getCleanNick(user); trIRCUserRecord &userRecord = getUserInfo(nick); - trIRCChannelUserPermisions perms; + trIRCChannelUserPermissions perms; setDefaultChannelUserPerms(perms); if ( user[0] == '@' ) @@ -923,7 +923,7 @@ return string_util::tolower(name); } -void IRCUserManager::setDefaultUserPerms ( trIRCUserPermisions &perms ) +void IRCUserManager::setDefaultUserPerms ( trIRCUserPermissions &perms ) { perms.mode = ""; perms.ircOp = false; @@ -937,7 +937,7 @@ perms.idle = false; } -void IRCUserManager::setDefaultChannelPerms ( trIRCChannelPermisions &perms ) +void IRCUserManager::setDefaultChannelPerms ( trIRCChannelPermissions &perms ) { perms.mode = ""; perms.allowColors = true; @@ -955,7 +955,7 @@ perms.reducedModeraton = false; } -void IRCUserManager::setDefaultChannelUserPerms ( trIRCChannelUserPermisions &perms ) +void IRCUserManager::setDefaultChannelUserPerms ( trIRCChannelUserPermissions &perms ) { perms.mode = ""; perms.chanOp = false; @@ -963,7 +963,7 @@ perms.quieted= false; } -void IRCUserManager::parseUserPerms ( std::string mode, trIRCUserPermisions &perms ) +void IRCUserManager::parseUserPerms ( std::string mode, trIRCUserPermissions &perms ) { perms.mode = mode; perms.ircOp = false; @@ -973,7 +973,7 @@ perms.inviteable = !string_util::charExists(mode,'I'); } -void IRCUserManager::parseChannelPerms ( std::string mode, trIRCChannelPermisions &perms ) +void IRCUserManager::parseChannelPerms ( std::string mode, trIRCChannelPermissions &perms ) { perms.mode = mode; perms.allowColors = string_util::charExists(mode,'c'); @@ -990,7 +990,7 @@ perms.reducedModeraton = string_util::charExists(mode,'z'); } -void IRCUserManager::parseChannelUserPerms ( std::string mode, trIRCChannelUserPermisions &perms ) +void IRCUserManager::parseChannelUserPerms ( std::string mode, trIRCChannelUserPermissions &perms ) { perms.mode = mode; perms.chanOp = string_util::charExists(mode,'o'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |