@@ -38,58 +38,68 @@ private void OnExecuteCommand(ShellCommandModule* commandModule, Utf8String* com
38
38
case not null when inputString . StartsWith ( "/party " ) :
39
39
case not null when inputString . StartsWith ( "/p " ) :
40
40
RaptureShellModule . Instance ( ) ->ChatType = 2 ;
41
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( "/party" ) ;
41
42
break ;
42
43
43
44
case not null when inputString . StartsWith ( "/say " ) :
44
45
case not null when inputString . StartsWith ( "/s " ) :
45
46
RaptureShellModule . Instance ( ) ->ChatType = 1 ;
47
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( "/say" ) ;
46
48
break ;
47
49
48
50
case not null when inputString . StartsWith ( "/alliance " ) :
49
51
case not null when inputString . StartsWith ( "/a " ) :
50
52
RaptureShellModule . Instance ( ) ->ChatType = 3 ;
53
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( "/alliance" ) ;
51
54
break ;
52
55
53
56
case not null when inputString . StartsWith ( "/freecompany " ) :
54
57
case not null when inputString . StartsWith ( "/fc " ) :
55
58
RaptureShellModule . Instance ( ) ->ChatType = 6 ;
59
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( "/freecompany" ) ;
56
60
break ;
57
61
58
62
case not null when inputString . StartsWith ( "/novice " ) :
59
63
case not null when inputString . StartsWith ( "/beginner " ) :
60
64
case not null when inputString . StartsWith ( "/n " ) :
61
65
RaptureShellModule . Instance ( ) ->ChatType = 8 ;
66
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( "/novice" ) ;
62
67
break ;
63
68
64
69
case not null when inputString . StartsWith ( "/yell " ) :
65
70
case not null when inputString . StartsWith ( "/y " ) :
66
71
RaptureShellModule . Instance ( ) ->ChatType = 4 ;
72
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( "/yell" ) ;
67
73
break ;
68
74
69
75
case not null when CrossWorldLinkshellLong ( ) . IsMatch ( inputString ) && inputString . Length > 12 : {
70
76
if ( int . TryParse ( inputString [ 12 ..13 ] , out var result ) ) {
71
77
RaptureShellModule . Instance ( ) ->ChatType = result + 8 ;
78
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( $ "/cwl{ result } ") ;
72
79
}
73
80
break ;
74
81
}
75
82
76
83
case not null when CrossWorldLinkshellShort ( ) . IsMatch ( inputString ) && inputString . Length > 4 : {
77
84
if ( int . TryParse ( inputString [ 4 ..5 ] , out var result ) ) {
78
85
RaptureShellModule . Instance ( ) ->ChatType = result + 8 ;
86
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( $ "/cwl{ result } ") ;
79
87
}
80
88
break ;
81
89
}
82
90
83
91
case not null when LinkshellLong ( ) . IsMatch ( inputString ) && inputString . Length > 10 : {
84
92
if ( int . TryParse ( inputString [ 10 ..11 ] , out var result ) ) {
85
93
RaptureShellModule . Instance ( ) ->ChatType = result + 18 ;
94
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( $ "/linkshell{ result } ") ;
86
95
}
87
96
break ;
88
97
}
89
98
90
99
case not null when LinkshellShort ( ) . IsMatch ( inputString ) && inputString . Length > 2 : {
91
100
if ( int . TryParse ( inputString [ 2 ..3 ] , out var result ) ) {
92
101
RaptureShellModule . Instance ( ) ->ChatType = result + 18 ;
102
+ RaptureShellModule . Instance ( ) ->CurrentChannel . SetString ( $ "/linkshell{ result } ") ;
93
103
}
94
104
break ;
95
105
}
0 commit comments