Browse Source

Update old ghost mean code to be revenge (#40)

Bryan Drewery 14 năm trước cách đây
mục cha
commit
674d10f592
3 tập tin đã thay đổi với 13 bổ sung15 xóa
  1. 1 1
      doc/responses.txt
  2. 9 11
      src/flags.c
  3. 3 3
      src/flags.h

+ 1 - 1
doc/responses.txt

@@ -157,7 +157,7 @@
  what's the rush?
  next time you do that, i'll kick you again
  and I thought you were a catcher
-:mean
+:revenge
  hey! that wasn't very nice!
  don't fuck with my pals
  don't touch my buddies like that queer

+ 9 - 11
src/flags.c

@@ -596,20 +596,18 @@ void deflag_user(struct userrec *u, deflag_event_t why, const char *msg, const s
     strlcpy(tmp, STR("Manual op in -manop channel"), sizeof(tmp));
     which = chan->manop;
     break;
-#ifdef G_MEAN
-  case DEFLAG_EVENT_MEAN_DEOP:
-    strlcpy(tmp, STR("Deopped bot in +mean channel"), sizeof(tmp));
-    ent = &CFG_MEANDEOP;
+  case DEFLAG_EVENT_REVENGE_DEOP:
+    strlcpy(tmp, STR("Deopped bot in +revenge channel"), sizeof(tmp));
+    which = chan->revenge;
     break;
-  case DEFLAG_EVENT_MEAN_KICK:
-    strlcpy(tmp, STR("Kicked bot in +mean channel"), sizeof(tmp));
-    ent = &CFG_MEANDEOP;
+  case DEFLAG_EVENT_REVENGE_KICK:
+    strlcpy(tmp, STR("Kicked bot in +revenge channel"), sizeof(tmp));
+    which = chan->revenge;
     break;
-  case DEFLAG_EVENT_MEAN_BAN:
-    strlcpy(tmp, STR("Banned bot in +mean channel"), sizeof(tmp));
-    ent = &CFG_MEANDEOP;
+  case DEFLAG_EVENT_REVENGE_BAN:
+    strlcpy(tmp, STR("Banned bot in +revenge channel"), sizeof(tmp));
+    which = chan->revenge;
     break;
-#endif /* G_MEAN */
   case DEFLAG_EVENT_MDOP:
     strlcpy(tmp, "Mass deop", sizeof(tmp));
     which = chan->mdop;

+ 3 - 3
src/flags.h

@@ -51,9 +51,9 @@ struct flag_record {
 enum deflag_event_t {
   DEFLAG_EVENT_BADCOOKIE = 1,
   DEFLAG_EVENT_MANUALOP,
-  DEFLAG_EVENT_MEAN_DEOP,
-  DEFLAG_EVENT_MEAN_KICK,
-  DEFLAG_EVENT_MEAN_BAN,
+  DEFLAG_EVENT_REVENGE_DEOP,
+  DEFLAG_EVENT_REVENGE_KICK,
+  DEFLAG_EVENT_REVENGE_BAN,
   DEFLAG_EVENT_MDOP,
   DEFLAG_EVENT_MOP,
 };