Pārlūkot izejas kodu

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

Bryan Drewery 14 gadi atpakaļ
vecāks
revīzija
674d10f592
3 mainītis faili ar 13 papildinājumiem un 15 dzēšanām
  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?
  what's the rush?
  next time you do that, i'll kick you again
  next time you do that, i'll kick you again
  and I thought you were a catcher
  and I thought you were a catcher
-:mean
+:revenge
  hey! that wasn't very nice!
  hey! that wasn't very nice!
  don't fuck with my pals
  don't fuck with my pals
  don't touch my buddies like that queer
  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));
     strlcpy(tmp, STR("Manual op in -manop channel"), sizeof(tmp));
     which = chan->manop;
     which = chan->manop;
     break;
     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;
     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;
     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;
     break;
-#endif /* G_MEAN */
   case DEFLAG_EVENT_MDOP:
   case DEFLAG_EVENT_MDOP:
     strlcpy(tmp, "Mass deop", sizeof(tmp));
     strlcpy(tmp, "Mass deop", sizeof(tmp));
     which = chan->mdop;
     which = chan->mdop;

+ 3 - 3
src/flags.h

@@ -51,9 +51,9 @@ struct flag_record {
 enum deflag_event_t {
 enum deflag_event_t {
   DEFLAG_EVENT_BADCOOKIE = 1,
   DEFLAG_EVENT_BADCOOKIE = 1,
   DEFLAG_EVENT_MANUALOP,
   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_MDOP,
   DEFLAG_EVENT_MOP,
   DEFLAG_EVENT_MOP,
 };
 };