## a switch statement for this might look something like the following...
##
switch -- $arg {
	$::botnick {putmsg $chan "\001ACTION got a kiss from $nick\001"}
	$nick {putmsg $chan "$nick, sending a kiss to yourself wont get you far."}
	default {
		if {[onchan $arg $chan]} {
			putmsg $chan "\001ACTION sent a kiss to $arg from $nick\001"
		} else {putmsg $chan "$arg wasnt found on the chan."}
	}
}


# Kiss
# Bind command
bind pub - kiss pub:say3

# Proc
proc pub:say3 {nick uhost hand chan arg} {
	## you can take this global call out if you use namespace calls
	##global aslapr
	if {[string equal $arg $::botnick]} {
		## note the $::aslapr :: is the global namespace
		putmsg $chan "\001ACTION got a kiss from $nick\001"
	} elseif {[string equal $nick $arg]} {
		putmsg $chan "$nick, sending a kiss to yourself wont get you far."
	} elseif {[onchan $arg $chan]} {
		putmsg $chan "\001ACTION sent a kiss to $arg from $nick\001"
	} else {
		putmsg $chan "$arg wasnt found on the chan."
	}

}

putlog "Loaded kisser by Barvaz"