mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 15:00:14 -05:00
IRCConnection: Just a bracket fix
This commit is contained in:
parent
02b7ec1741
commit
6c3597ff80
@ -1129,14 +1129,16 @@ public class IRCConnection extends PircBot
|
||||
* @param text The text to check for the nickname
|
||||
* @return true if nickname was found, otherwise false
|
||||
*/
|
||||
public boolean isMentioned(String text) {
|
||||
public boolean isMentioned(String text)
|
||||
{
|
||||
return mNickMatch.matcher(text).find();
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the nick matching pattern, should be called when the nickname changes.
|
||||
*/
|
||||
private void updateNickMatchPattern() {
|
||||
mNickMatch = Pattern.compile("(?:^|[\\s?!'´:;,.])"+Pattern.quote(getNick())+"(?:[\\s?!'´:;,.]|$)", Pattern.CASE_INSENSITIVE);
|
||||
private void updateNickMatchPattern()
|
||||
{
|
||||
mNickMatch = Pattern.compile("(?:^|[\\s?!'<27>:;,.])"+Pattern.quote(getNick())+"(?:[\\s?!'<27>:;,.]|$)", Pattern.CASE_INSENSITIVE);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user