Page MenuHomeDevCentral

D410.diff
No OneTemporary

D410.diff

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

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)

Event Timeline