From 7c91392c8525486876fe381b33f21b7dd508477c Mon Sep 17 00:00:00 2001 From: Sven Moritz Hallberg Date: Fri, 1 Oct 2010 22:14:45 +0200 Subject: give smp/smpq command handler a better name --- otr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'otr.c') diff --git a/otr.c b/otr.c index 16bbc633..c71ff573 100644 --- a/otr.c +++ b/otr.c @@ -157,7 +157,7 @@ irc_user_t *peeruser(irc_t *irc, const char *handle, const char *protocol); void otr_handle_smp(struct im_connection *ic, const char *handle, OtrlTLV *tlvs); /* combined handler for the 'otr smp' and 'otr smpq' commands */ -void otr_initiate_smp(irc_t *irc, const char *nick, const char *question, +void otr_smp_or_smpq(irc_t *irc, const char *nick, const char *question, const char *secret); /* update op/voice flag of given user according to encryption state and settings @@ -737,12 +737,12 @@ void cmd_otr_connect(irc_t *irc, char **args) void cmd_otr_smp(irc_t *irc, char **args) { - otr_initiate_smp(irc, args[1], NULL, args[2]); /* no question */ + otr_smp_or_smpq(irc, args[1], NULL, args[2]); /* no question */ } void cmd_otr_smpq(irc_t *irc, char **args) { - otr_initiate_smp(irc, args[1], args[2], args[3]); + otr_smp_or_smpq(irc, args[1], args[2], args[3]); } void cmd_otr_trust(irc_t *irc, char **args) @@ -1162,7 +1162,7 @@ void otr_handle_smp(struct im_connection *ic, const char *handle, OtrlTLV *tlvs) } /* combined handler for the 'otr smp' and 'otr smpq' commands */ -void otr_initiate_smp(irc_t *irc, const char *nick, const char *question, +void otr_smp_or_smpq(irc_t *irc, const char *nick, const char *question, const char *secret) { irc_user_t *u; -- cgit v1.2.3