We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c222b90 commit c97490fCopy full SHA for c97490f
src/commands/handlers/generics.js
@@ -134,6 +134,16 @@ module.exports = function AddCommandHandlers(command_controller) {
134
}
135
136
137
+ if (event_obj.channel) {
138
+ // Extract the group from any errors targetted towards channels with a statusmsg prefix
139
+ // Eg. @#channel
140
+ var parsed = this.network.extractTargetGroup(event_obj.channel);
141
+ if (parsed) {
142
+ event_obj.channel = parsed.target;
143
+ event_obj.target_group = parsed.target_group;
144
+ }
145
146
+
147
this.emit(generic.event, event_obj);
148
});
149
0 commit comments