slap "improvement" and some other things
slap "improvement" and some other things

file:a/.vstmDB -> file:b/.vstmDB
--- a/.vstmDB
+++ b/.vstmDB
@@ -1,7 +1,6 @@
 Headers msgs received
 @L IP lookup
 Check for overflows in strings !
-handle registering
 @H variables MAX_NICK_LEN and NICK_SPACE_NEEDED
 @L implement locking for users file
 @H Do the PKG and co.

--- a/src/extra_options.c
+++ b/src/extra_options.c
@@ -205,7 +205,19 @@
 	char to_send_wo_color[NICK_SPACE_NEEDED * 2 + 50];
 
 	user_to_slap = get_client_from_nick(srv, args);
-	if(user_to_slap) {
+	if(user_to_slap == asker) {
+		client_nick_to_display(srv, asker, slapper_wo_color, 0);
+		client_nick_to_display(srv, asker, slapper_w_color, 1);
+
+		sprintf(to_send_w_color, TNCMSG_OPT_SLAP_MSG_STUPID,
+		        slapper_w_color);
+		sprintf(to_send_wo_color, TNCMSG_OPT_SLAP_MSG_STUPID,
+		        slapper_wo_color);
+
+		send_brdcst(srv, to_send_wo_color, to_send_w_color, -1);
+
+	}
+	else if(user_to_slap) {
 		client_nick_to_display(srv, asker, slapper_wo_color, 0);
 		client_nick_to_display(srv, asker, slapper_w_color, 1);
 

--- a/src/messages.h
+++ b/src/messages.h
@@ -14,6 +14,7 @@
 #define TNCMSG_OPT_LIST_IT_IS_YOU "<- that's you"
 /* SLAP */
 #define TNCMSG_OPT_SLAP_MSG "%s was slapped by %s"
+#define TNCMSG_OPT_SLAP_MSG_STUPID "%s slapped himself"
 #define TNCMSG_OPT_SLAP_UNK_USER "unknown user"
 /* LOGIN */
 #define TNCMSG_OPT_LOGIN_CHANGED_NICK "%s changed his nick to %s"

--- a/src/options.c
+++ b/src/options.c
@@ -44,6 +44,7 @@
 handle_option(struct srv_conf *srv, int client, char *sent)
 { /* {{{ */
 
+	char *tmp;
 	if(sent[0] != '/')
 		return 0;
 
@@ -57,7 +58,9 @@
 		client_opt_print_client_list(srv, client, get_args(sent));
 	}
 	else if(cmp_arg_is(sent+1, "say")) {
-		send_msg(srv, get_args(sent), client);
+		tmp = get_args(sent);
+		if(tmp)
+			send_msg(srv, tmp, client);
 	}
 	else if(cmp_arg_is(sent+1, "color")) {
 		client_opt_color(srv, client, get_args(sent));
@@ -95,8 +98,8 @@
 	* /quit\n\
 	* /list\n\
 		To list users\n\
-	* /say Foo bar\n\
-		To say \"Foo bar\"\n\
+	* /say /quit and /quat [...]:p\n\
+		To say \"/quit and /quat [...]\" :p\n\
 	* /color Y/N\n\
 		To enable or disable colors\n\
 	* /slap User\n\