Guest User

Untitled

a guest
Jun 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1.  
  2. Index: modules/Factoid.java
  3. ===================================================================
  4. --- modules/Factoid.java (revision 345)
  5. +++ modules/Factoid.java (working copy)
  6. @@ -87,7 +87,7 @@
  7. public void trigger(String channel, String sender, String login, String hostname, String message) {
  8.  
  9. // If trying to ADD a NEW factoid (with the main trigger !factoid <on> or the shorttrigger !on)
  10. - if(message.startsWith(TRIGGER_MAIN + TRIGGER_MAIN_ADD) || message.startsWith(TRIGGER_SHORT_ADD) && !sender.equalsIgnoreCase("Twst") && !sender.equalsIgnoreCase("Twisty")){
  11. + if(message.startsWith(TRIGGER_MAIN + TRIGGER_MAIN_ADD) || message.startsWith(TRIGGER_SHORT_ADD)){
  12.  
  13. // First parse the line to find the trigger, reply, and if it's a message or action
  14. // Do this based on what kind of trigger that was used
  15. @@ -135,7 +135,7 @@
  16. trigger = message.substring(TRIGGER_SHORT_DEL.length());
  17.  
  18. // and try to remove it - del() returns true if it's removed, false if there is no such trigger
  19. - if(del(trigger)) {
  20. + if(!sender.equalsIgnoreCase("krashk") &&
Add Comment
Please, Sign In to add comment