@@ -108,8 +108,6 @@ public void onMessage(MessageEvent e) {
108
108
String payload = message .substring (directMessagePrefix .length ()).trim ();
109
109
payload = payload .replaceAll ("\\ s+" , " " );
110
110
handleDirectCommand (channel , sender , payload );
111
- } else { // Just a commmon message in the chat
112
- replyBugStatuses (channel , message );
113
111
}
114
112
} catch (RuntimeException ex ) { // Catch unhandled runtime issues
115
113
ex .printStackTrace ();
@@ -120,43 +118,6 @@ public void onMessage(MessageEvent e) {
120
118
}
121
119
}
122
120
123
- private void replyBugStatuses (Channel channel , String message ) {
124
- Matcher m = Pattern .compile ("(?:hudson-|jenkins-|bug )([0-9]{2,})" ,CASE_INSENSITIVE ).matcher (message );
125
- while (m .find ()) {
126
- replyBugStatus (channel ,"JENKINS-" +m .group (1 ));
127
- }
128
-
129
- m = Pattern .compile ("(?:infra-)([0-9]+)" ,CASE_INSENSITIVE ).matcher (message );
130
- while (m .find ()) {
131
- replyBugStatus (channel ,"INFRA-" +m .group (1 ));
132
- }
133
-
134
- m = Pattern .compile ("(?:website-)([0-9]+)" ,CASE_INSENSITIVE ).matcher (message );
135
- while (m .find ()) {
136
- replyBugStatus (channel ,"WEBSITE-" +m .group (1 ));
137
- }
138
-
139
- m = Pattern .compile ("(?:hosting-)([0-9]+)" ,CASE_INSENSITIVE ).matcher (message );
140
- while (m .find ()) {
141
- replyBugStatus (channel ,"HOSTING-" +m .group (1 ));
142
- }
143
-
144
- m = Pattern .compile ("(?:events-)([0-9]+)" ,CASE_INSENSITIVE ).matcher (message );
145
- while (m .find ()) {
146
- replyBugStatus (channel ,"EVENTS-" +m .group (1 ));
147
- }
148
-
149
- m = Pattern .compile ("(?:ux-)([0-9]+)" ,CASE_INSENSITIVE ).matcher (message );
150
- while (m .find ()) {
151
- replyBugStatus (channel ,"UX-" +m .group (1 ));
152
- }
153
-
154
- m = Pattern .compile ("(?:test-)([0-9]+)" ,CASE_INSENSITIVE ).matcher (message );
155
- while (m .find ()) {
156
- replyBugStatus (channel ,"TEST-" +m .group (1 ));
157
- }
158
- }
159
-
160
121
/**
161
122
* Handles direct commands coming to the bot.
162
123
* The handler presumes the external trimming of the payload.
0 commit comments