From 51ed8ab0f25e2c37a5cfeac390b1ae7b8f8004b2 Mon Sep 17 00:00:00 2001
From: Loris TICHADOU <loris.tichadou@ensiie.fr>
Date: Thu, 8 Aug 2019 17:01:56 +0200
Subject: [PATCH] Update nardco.py

---
 nardco.py | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/nardco.py b/nardco.py
index c669d43..c71100c 100755
--- a/nardco.py
+++ b/nardco.py
@@ -100,26 +100,6 @@ class Boooob(ircbot.SingleServerIRCBot):
         auteur = str(irclib.nm_to_n(ev.source()))
         canal = ev.target()
 
-    def on_privmsg(self, serv, ev):  # msg privé
-        personne = ev.source()
-        canal = ""
-
-        if "tichadou" in personne:
-            msg = ev.arguments()[0]
-            msg = msg.split(" ")
-            a = 0
-            for f in msg:
-                a = a + 1
-                if f[0] == "#":
-                    canal = f
-                    msg.pop(a - 1)
-                    break
-            msg = " ".join(msg)
-            try:
-                serv.privmsg(canal, msg)
-            except:
-                serv.privmsg("#nardco", "probleeeeme")
-
     def on_invite(self, serv, ev):
         personne = ev.source()
         canal = ev.arguments()[0]
-- 
GitLab