255 |
|
*/ |
256 |
|
public void sendMsg(String msg) { |
257 |
|
_socketOut.println("PRIVMSG "+_channel+" :"+msg); |
258 |
+ |
// wait a second before returning... |
259 |
+ |
// this ensures messages can't be sent too fast |
260 |
+ |
try {Thread.sleep(1000);} catch (InterruptedException e) {} |
261 |
|
} |
262 |
|
|
263 |
|
/** |
268 |
|
*/ |
269 |
|
public void sendPrivMsg(String user, String msg) { |
270 |
|
_socketOut.println("PRIVMSG "+user+" :"+msg); |
271 |
+ |
// wait a second before returning... |
272 |
+ |
// this ensures messages can't be sent too fast |
273 |
+ |
try {Thread.sleep(1000);} catch (InterruptedException e) {} |
274 |
|
} |
275 |
|
|
276 |
|
/** |
281 |
|
public void sendAction(String msg) { |
282 |
|
char esc = 001; |
283 |
|
sendMsg(esc+"ACTION "+msg+esc); |
284 |
+ |
// wait a second before returning... |
285 |
+ |
// this ensures messages can't be sent too fast |
286 |
+ |
try {Thread.sleep(1000);} catch (InterruptedException e) {} |
287 |
|
} |
288 |
|
|
289 |
|
/** |
293 |
|
*/ |
294 |
|
public void sendNotice(String msg) { |
295 |
|
_socketOut.println("NOTICE "+_channel+" :"+msg); |
296 |
+ |
// wait a second before returning... |
297 |
+ |
// this ensures messages can't be sent too fast |
298 |
+ |
try {Thread.sleep(1000);} catch (InterruptedException e) {} |
299 |
|
} |
300 |
|
|
301 |
|
/** |