Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3d2e443

Browse files
committed
Pass all unknown commands through to the IRC server,closes#56
1 parentb002eef commit3d2e443

File tree

3 files changed

+41
-44
lines changed

3 files changed

+41
-44
lines changed

‎assets/bindata.go‎

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎client/js/commands.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ export default createCommandMiddleware(COMMAND, {
187187
},
188188

189189
[notFoundHandler](ctx,command, ...params){
190-
if(command===command.toUpperCase()){
191-
returnthis.raw(ctx,command, ...params);
192-
}
193-
returnerror(`=> /${command}: No such command`);
190+
returnthis.raw(ctx,command, ...params);
194191
}
195192
});

‎client/js/middleware/command.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function createCommandMiddleware(type, handlers) {
2727
returnstore=>next=>action=>{
2828
if(action.type===type){
2929
constwords=action.command.slice(1).split(' ');
30-
constcommand=words[0];
30+
constcommand=words[0].toLowerCase();
3131
constparams=words.slice(1);
3232

3333
if(commandinhandlers){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp