Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3767705
D410.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
918 B
Referenced Files
None
Subscribers
None
D410.diff
View Options
diff --git a/Daeghrefn/Wikimedia.tcl b/Daeghrefn/Wikimedia.tcl
--- a/Daeghrefn/Wikimedia.tcl
+++ b/Daeghrefn/Wikimedia.tcl
@@ -47,7 +47,10 @@
# Handles .+givenname command
proc pub:givenname {nick uhost handle chan arg} {
set params [split $arg]
- if {[llength $params] > 1} {
+ if {[llength $params] == 0} {
+ putdcc $idx "Quel prénom ajouter ? e.g. .+prenom Aude F"
+ return 0
+ } elseif {[llength $params] > 1} {
set title [lindex $params 0]
set genre [string toupper [lindex $params 1]]
switch -- $genre {
@@ -77,7 +80,10 @@
# Handles .+givenname command
proc dcc:givenname {handle idx arg} {
set params [split $arg]
- if {[llength $params] > 1} {
+ if {[llength $params] == 0} {
+ putdcc $idx "Quel prénom ajouter ? e.g. .+prenom Aude F"
+ return 0
+ } elseif {[llength $params] > 1} {
set title [lindex $params 0]
set genre [string toupper [lindex $params 1]]
switch -- $genre {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 02:59 (19 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259405
Default Alt Text
D410.diff (918 B)
Attached To
Mode
D410: Wikimedia: fix .+prenom issue when no argument is given
Attached
Detach File
Event Timeline
Log In to Comment