Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
f253ab24
Commit
f253ab24
authored
May 27, 2015
by
Mindiell
Browse files
Added better logging (1)
parent
431c56c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
f253ab24
...
...
@@ -218,14 +218,19 @@ class Wantzel(object):
command
=
command
.
group
(
1
)
Utils
.
debug
(
"Command: %s"
%
command
)
if
command
.
startswith
(
"rp"
):
Utils
.
debug
(
"Calling self.rp"
)
self
.
rp
(
command
,
user
,
channel
,
msg
,
title
)
elif
command
==
"help"
:
Utils
.
debug
(
"Calling self.help"
)
self
.
help
(
user
,
channel
,
msg
)
elif
command
==
"kill"
:
Utils
.
debug
(
"Calling self.kill"
)
self
.
kill
(
user
,
channel
,
msg
)
elif
command
==
"stats"
:
Utils
.
debug
(
"Calling self.stats"
)
self
.
stats
(
user
,
channel
,
msg
)
elif
command
==
"admin"
:
Utils
.
debug
(
"Calling self.admin"
)
self
.
admin
(
user
,
channel
,
msg
)
# No more giving the title of an url
#if title and website:
...
...
@@ -250,7 +255,11 @@ class Wantzel(object):
"""
Adding the article in rp database.
"""
Utils
.
debug
(
"rp command %s"
%
command
)
Utils
.
debug
(
"rp command : %s"
%
command
)
Utils
.
debug
(
"rp user : %s"
%
user
)
Utils
.
debug
(
"rp channel : %s"
%
channel
)
Utils
.
debug
(
"rp msg : %s"
%
msg
)
Utils
.
debug
(
"rp title : %s"
%
title
)
cite
=
0
note
=
0
url
=
get_url
(
msg
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment