import * as actionTypes from "./actionTypes";

export default {
	appConfig: {
		update(data) {
			return {
				type: actionTypes.appConfig.UPDATE,
				data
			};
		}
	},
	categoryCaches: {
		append(data) {
			return {
				type: actionTypes.categoryCaches.APPEND,
				data
			};
		},
		update(data) {
			return {
				type: actionTypes.categoryCaches.UPDATE,
				data
			};
		}
	},
	channelCaches: {
		append(data) {
			return {
				type: actionTypes.channelCaches.APPEND,
				data
			};
		},
		update(data) {
			return {
				type: actionTypes.channelCaches.UPDATE,
				data
			};
		}
	},
	channelUserLists: {
		update(data) {
			return {
				type: actionTypes.channelUserLists.UPDATE,
				data
			};
		}
	},
	connectionStatus: {
		update(data) {
			return {
				type: actionTypes.connectionStatus.UPDATE,
				data
			};
		}
	},
	friendsList: {
		set(data) {
			return {
				type: actionTypes.friendsList.SET,
				data
			};
		},
		update(level, data) {
			return {
				type: actionTypes.friendsList.UPDATE,
				level,
				data
			};
		}
	},
	ircConfigs: {
		set(data) {
			return {
				type: actionTypes.ircConfigs.SET,
				data
			};
		},
		update(data) {
			return {
				type: actionTypes.ircConfigs.UPDATE,
				data
			};
		}
	},
	lastSeenChannels: {
		update(data) {
			return {
				type: actionTypes.lastSeenChannels.UPDATE,
				data
			};
		}
	},
	lastSeenUsers: {
		update(data) {
			return {
				type: actionTypes.lastSeenUsers.UPDATE,
				data
			};
		}
	},
	lineInfo: {
		update(data) {
			return {
				type: actionTypes.lineInfo.UPDATE,
				data
			};
		}
	},
	logDetails: {
		update(data) {
			return {
				type: actionTypes.logDetails.UPDATE,
				data
			};
		}
	},
	logFiles: {
		clear(channel, date) {
			return {
				type: actionTypes.logFiles.CLEAR,
				channel,
				date
			};
		},
		update(subjectName, date, lines) {
			return {
				type: actionTypes.logFiles.UPDATE,
				subjectName,
				date,
				lines
			};
		}
	},
	multiServerChannels: {
		set(data) {
			return {
				type: actionTypes.multiServerChannels.SET,
				data
			};
		}
	},
	nicknames: {
		set(data) {
			return {
				type: actionTypes.nicknames.SET,
				data
			};
		},
		update(subjectName, date, lines) {
			return {
				type: actionTypes.nicknames.UPDATE,
				subjectName,
				date,
				lines
			};
		}
	},
	onlineFriends: {
		set(data) {
			return {
				type: actionTypes.onlineFriends.SET,
				data
			};
		}
	},
	token: {
		set(data) {
			return {
				type: actionTypes.token.SET,
				data
			};
		}
	},
	unseenHighlights: {
		set(data) {
			return {
				type: actionTypes.unseenHighlights.SET,
				data
			};
		}
	},
	userCaches: {
		append(data) {
			return {
				type: actionTypes.userCaches.APPEND,
				data
			};
		},
		update(data) {
			return {
				type: actionTypes.userCaches.UPDATE,
				data
			};
		}
	},
	viewState: {
		update(data) {
			return {
				type: actionTypes.viewState.UPDATE,
				data
			};
		}
	}
};

@@ -2161,32 +2161,12 @@
 ate(
-subjectName, date, lines
+data
 ) %7B%0A
@@ -2225,40 +2225,12 @@
 %09%09%09%09
-subjectName,%0A%09%09%09%09date,%0A%09%09%09%09lines
+data
 %0A%09%09%09

Fix screwup