1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-15 13:35:09 -05:00

IRCConnection: Just a bracket fix

This commit is contained in:
Sebastian Kaspari 2010-11-18 18:55:19 +01:00
parent 02b7ec1741
commit 6c3597ff80

View File

@ -1129,14 +1129,16 @@ public class IRCConnection extends PircBot
* @param text The text to check for the nickname * @param text The text to check for the nickname
* @return true if nickname was found, otherwise false * @return true if nickname was found, otherwise false
*/ */
public boolean isMentioned(String text) { public boolean isMentioned(String text)
{
return mNickMatch.matcher(text).find(); return mNickMatch.matcher(text).find();
} }
/** /**
* Update the nick matching pattern, should be called when the nickname changes. * Update the nick matching pattern, should be called when the nickname changes.
*/ */
private void updateNickMatchPattern() { private void updateNickMatchPattern()
mNickMatch = Pattern.compile("(?:^|[\\s?!'´:;,.])"+Pattern.quote(getNick())+"(?:[\\s?!'´:;,.]|$)", Pattern.CASE_INSENSITIVE); {
mNickMatch = Pattern.compile("(?:^|[\\s?!'<27>:;,.])"+Pattern.quote(getNick())+"(?:[\\s?!'<27>:;,.]|$)", Pattern.CASE_INSENSITIVE);
} }
} }