Use only single-method imports from lodash
This commit is contained in:
parent
b50a4a1068
commit
e2fbac7f38
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
import _ from 'lodash';
|
import _escape from 'lodash/escape';
|
||||||
import createCommandMiddleware from './middleware/command';
|
import createCommandMiddleware from './middleware/command';
|
||||||
import { COMMAND } from './actions';
|
import { COMMAND } from './actions';
|
||||||
import { setNick, disconnect, whois, away } from './actions/server';
|
import { setNick, disconnect, whois, away } from './actions/server';
|
||||||
@ -20,7 +20,7 @@ const help = [
|
|||||||
'/whois <user> - Get information about user',
|
'/whois <user> - Get information about user',
|
||||||
'/away [message] - Set or clear away message',
|
'/away [message] - Set or clear away message',
|
||||||
'/raw [message] - Send raw IRC message to the current server'
|
'/raw [message] - Send raw IRC message to the current server'
|
||||||
].map(_.escape);
|
].map(_escape);
|
||||||
|
|
||||||
export default createCommandMiddleware(COMMAND, {
|
export default createCommandMiddleware(COMMAND, {
|
||||||
join({ dispatch, server }, channel) {
|
join({ dispatch, server }, channel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user