Page MenuHomeDevCentral

D410.id999.diff
No OneTemporary

D410.id999.diff

diff --git a/Daeghrefn/Wikimedia.tcl b/Daeghrefn/Wikimedia.tcl
--- a/Daeghrefn/Wikimedia.tcl
+++ b/Daeghrefn/Wikimedia.tcl
@@ -47,7 +47,9 @@
# 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"
+ } elseif {[llength $params] > 1} {
set title [lindex $params 0]
set genre [string toupper [lindex $params 1]]
switch -- $genre {
@@ -77,7 +79,9 @@
# 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"
+ } 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
Fri, Jan 31, 02:31 (8 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2386474
Default Alt Text
D410.id999.diff (892 B)

Event Timeline