mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +02:00
core: fix typos in many comments and some strings
This commit is contained in:
@@ -395,7 +395,7 @@ weechat_aspell_check_word (struct t_gui_buffer *buffer,
|
||||
buffer_type = weechat_buffer_get_string (buffer, "localvar_type");
|
||||
if (buffer_type && (strcmp (buffer_type, "private") == 0))
|
||||
{
|
||||
/* check seld nick */
|
||||
/* check self nick */
|
||||
buffer_nick = weechat_buffer_get_string (buffer, "localvar_nick");
|
||||
if (buffer_nick && (weechat_strcasecmp (buffer_nick, word) == 0))
|
||||
return 1;
|
||||
@@ -664,7 +664,7 @@ weechat_aspell_modifier_cb (void *data, const char *modifier,
|
||||
if (weechat_aspell_string_is_url (ptr_string))
|
||||
{
|
||||
/*
|
||||
* word is an URL, then it is ok, and search for next space
|
||||
* word is an URL, then it is OK, and search for next space
|
||||
* (will be end of word)
|
||||
*/
|
||||
word_ok = 1;
|
||||
|
||||
@@ -154,7 +154,7 @@ fifo_create ()
|
||||
/* create FIFO pipe, writable for user only */
|
||||
if (mkfifo (fifo_filename, 0600) == 0)
|
||||
{
|
||||
/* open FIFO pipe in read-only, non blockingmode */
|
||||
/* open FIFO pipe in read-only, non-blocking mode */
|
||||
if ((fifo_fd = open (fifo_filename,
|
||||
O_RDONLY | O_NONBLOCK)) != -1)
|
||||
{
|
||||
|
||||
@@ -131,7 +131,7 @@ weechat_guile_api_scm_to_string (SCM str,
|
||||
}
|
||||
|
||||
/*
|
||||
* Frees all alloacated strings in "guile_strings".
|
||||
* Frees all allocated strings in "guile_strings".
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -969,7 +969,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
plugin_script_display_short_list (weechat_guile_plugin,
|
||||
guile_scripts);
|
||||
|
||||
/* init ok */
|
||||
/* init OK */
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -350,7 +350,7 @@ irc_channel_new (struct t_irc_server *server, int channel_type,
|
||||
"irc_channel_opened" : "irc_pv_opened",
|
||||
WEECHAT_HOOK_SIGNAL_POINTER, new_buffer);
|
||||
|
||||
/* all is ok, return address of new channel */
|
||||
/* all is OK, return address of new channel */
|
||||
return new_channel;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ struct t_irc_channel_speaking
|
||||
struct t_irc_channel
|
||||
{
|
||||
int type; /* channel type */
|
||||
char *name; /* name of channel (exemple: "#abc") */
|
||||
char *name; /* name of channel (example: "#abc") */
|
||||
char *topic; /* topic of channel (host for pv) */
|
||||
char *modes; /* channel modes */
|
||||
int limit; /* user limit (0 is limit not set) */
|
||||
|
||||
@@ -783,7 +783,7 @@ irc_command_connect_one_server (struct t_irc_server *server,
|
||||
server->reconnect_join = (server->channels) ? 1 : 0;
|
||||
}
|
||||
|
||||
/* connect ok */
|
||||
/* connect OK */
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1483,7 +1483,7 @@ irc_command_disconnect_one_server (struct t_irc_server *server,
|
||||
/* ask refresh for "away" item */
|
||||
weechat_bar_item_update ("away");
|
||||
|
||||
/* disconnect ok */
|
||||
/* disconnect OK */
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -3719,7 +3719,7 @@ irc_command_reconnect_one_server (struct t_irc_server *server,
|
||||
server->reconnect_join = (server->channels) ? 1 : 0;
|
||||
}
|
||||
|
||||
/* reconnect ok */
|
||||
/* reconnect OK */
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -2120,7 +2120,7 @@ irc_config_init ()
|
||||
"nick_color_force", "string",
|
||||
N_("force color for some nicks: hash computed with nickname "
|
||||
"to find color will not be used for these nicks (format is: "
|
||||
"\"nick1:color1;nick2:color2\"); lookup for nicks is with "
|
||||
"\"nick1:color1;nick2:color2\"); look up for nicks is with "
|
||||
"exact case then lower case, so it's possible to use only lower "
|
||||
"case for nicks in this option"),
|
||||
NULL, 0, 0, "", NULL, 0, NULL, NULL,
|
||||
@@ -2350,7 +2350,7 @@ irc_config_init ()
|
||||
irc_config_file, ptr_section,
|
||||
"smart_filter_join_unmask", "integer",
|
||||
N_("delay for unmasking a join message that was filtered with tag "
|
||||
"\"irc_smart_filter\" (in minutes): if a nick jas joined max N "
|
||||
"\"irc_smart_filter\" (in minutes): if a nick has joined max N "
|
||||
"minutes ago and then says something on channel (message, notice or "
|
||||
"update on topic), the join is unmasked, as well as nick changes "
|
||||
"after this join (0 = disable: never unmask a join)"),
|
||||
|
||||
@@ -540,7 +540,7 @@ irc_info_get_infolist_cb (void *data, const char *infolist_name,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* build list with notify list of all servers matchin arguments */
|
||||
/* build list with notify list of all servers matching arguments */
|
||||
for (ptr_server = irc_servers; ptr_server;
|
||||
ptr_server = ptr_server->next_server)
|
||||
{
|
||||
|
||||
@@ -163,7 +163,7 @@ irc_mode_channel_update (struct t_irc_server *server,
|
||||
{
|
||||
case 'A': /* always argument */
|
||||
case 'B': /* always argument */
|
||||
case 'C': /* argumment if set */
|
||||
case 'C': /* argument if set */
|
||||
ptr_arg = (current_arg < argc) ?
|
||||
argv[current_arg] : NULL;
|
||||
break;
|
||||
@@ -334,7 +334,7 @@ irc_mode_channel_set (struct t_irc_server *server,
|
||||
ptr_arg = (current_arg < argc) ?
|
||||
argv[current_arg] : NULL;
|
||||
break;
|
||||
case 'C': /* argumment if set */
|
||||
case 'C': /* argument if set */
|
||||
ptr_arg = ((set_flag == '+') && (current_arg < argc)) ?
|
||||
argv[current_arg] : NULL;
|
||||
break;
|
||||
|
||||
@@ -671,7 +671,7 @@ irc_nick_new (struct t_irc_server *server, struct t_irc_channel *channel,
|
||||
/* add nick to buffer nicklist */
|
||||
irc_nick_nicklist_add (server, channel, new_nick);
|
||||
|
||||
/* all is ok, return address of new nick */
|
||||
/* all is OK, return address of new nick */
|
||||
return new_nick;
|
||||
}
|
||||
|
||||
@@ -801,7 +801,7 @@ irc_nick_free_all (struct t_irc_server *server, struct t_irc_channel *channel)
|
||||
irc_nick_free (server, channel, channel->nicks);
|
||||
}
|
||||
|
||||
/* sould be zero, but prevent any bug :D */
|
||||
/* should be zero, but prevent any bug :D */
|
||||
channel->nicks_count = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -2061,7 +2061,7 @@ IRC_PROTOCOL_CALLBACK(001)
|
||||
date, nick, address, host, command,
|
||||
ignored, argc, argv, argv_eol);
|
||||
|
||||
/* connection to IRC server is ok! */
|
||||
/* connection to IRC server is OK! */
|
||||
server->is_connected = 1;
|
||||
server->reconnect_delay = 0;
|
||||
if (server->hook_timer_connection)
|
||||
@@ -3802,7 +3802,7 @@ IRC_PROTOCOL_CALLBACK(353)
|
||||
|
||||
/*
|
||||
* for a channel without buffer, prepare a string that will be built
|
||||
* with nicks and colors (argc-args is the number of nicks)
|
||||
* with nicks and colors (argc - args is the number of nicks)
|
||||
*/
|
||||
if (!ptr_channel)
|
||||
{
|
||||
|
||||
@@ -56,7 +56,7 @@ struct t_irc_redirect
|
||||
/* redirected */
|
||||
int assigned_to_command; /* 1 if assigned to a command */
|
||||
time_t start_time; /* time when command is sent to server */
|
||||
/* (this is begining of this redirect) */
|
||||
/* (this is beginning of this redirect) */
|
||||
struct t_hashtable *cmd_start; /* command(s) starting redirection */
|
||||
/* (can be NULL or empty) */
|
||||
struct t_hashtable *cmd_stop; /* command(s) stopping redirection */
|
||||
|
||||
@@ -2650,7 +2650,7 @@ irc_server_timer_connection_cb (void *data, int remaining_calls)
|
||||
|
||||
/*
|
||||
* Callback for SASL authentication timer: it is called if there is a timeout
|
||||
* with SASL authentication (if SASL authentication is ok or failed, then hook
|
||||
* with SASL authentication (if SASL authentication is OK or failed, then hook
|
||||
* timer is removed before this callback is called).
|
||||
*/
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ struct t_irc_server
|
||||
char *isupport; /* copy of message 005 (ISUPPORT) */
|
||||
char *prefix_modes; /* prefix modes from msg 005 (eg "ohv") */
|
||||
char *prefix_chars; /* prefix chars from msg 005 (eg "@%+") */
|
||||
int nick_max_length; /* max lenth of nick (from msg 005) */
|
||||
int nick_max_length; /* max length of nick (from msg 005) */
|
||||
int casemapping; /* casemapping from msg 005 */
|
||||
char *chantypes; /* chantypes from msg 005 (eg "&#") */
|
||||
char *chanmodes; /* chanmodes from msg 005 */
|
||||
|
||||
@@ -860,7 +860,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
plugin_script_display_short_list (weechat_lua_plugin,
|
||||
lua_scripts);
|
||||
|
||||
/* init ok */
|
||||
/* init OK */
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -990,7 +990,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
weechat_hook_signal ("quit", &weechat_perl_signal_quit_upgrade_cb, NULL);
|
||||
weechat_hook_signal ("upgrade", &weechat_perl_signal_quit_upgrade_cb, NULL);
|
||||
|
||||
/* init ok */
|
||||
/* init OK */
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
@@ -1007,7 +1007,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
perl_quiet = 0;
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
/* free perl intepreter */
|
||||
/* free perl interpreter */
|
||||
if (perl_main)
|
||||
{
|
||||
perl_destruct (perl_main);
|
||||
|
||||
@@ -1297,7 +1297,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
plugin_script_display_short_list (weechat_python_plugin,
|
||||
python_scripts);
|
||||
|
||||
/* init ok */
|
||||
/* init OK */
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1391,7 +1391,7 @@ relay_irc_recv (struct t_relay_client *client, const char *data)
|
||||
goto end;
|
||||
}
|
||||
|
||||
/* check if connection to server is ok */
|
||||
/* check if connection to server is OK */
|
||||
infolist_server = weechat_infolist_get ("irc_server", NULL,
|
||||
client->protocol_args);
|
||||
if (infolist_server)
|
||||
|
||||
@@ -29,7 +29,7 @@ struct t_relay_irc_data
|
||||
{
|
||||
char *address; /* client address (used when sending */
|
||||
/* data to client) */
|
||||
int password_ok; /* password received and ok? */
|
||||
int password_ok; /* password received and OK? */
|
||||
char *nick; /* nick for client */
|
||||
int user_received; /* command "USER" received */
|
||||
int connected; /* 1 if client is connected as IRC */
|
||||
|
||||
@@ -174,7 +174,7 @@ relay_client_handshake_timer_cb (void *data, int remaining_calls)
|
||||
|
||||
if (rc == GNUTLS_E_SUCCESS)
|
||||
{
|
||||
/* handshake ok, set status to "connected" */
|
||||
/* handshake OK, set status to "connected" */
|
||||
weechat_unhook (client->hook_timer_handshake);
|
||||
client->hook_timer_handshake = NULL;
|
||||
relay_client_set_status (client, RELAY_STATUS_CONNECTED);
|
||||
|
||||
@@ -148,7 +148,7 @@ relay_weechat_protocol_is_sync (struct t_relay_client *ptr_client,
|
||||
return ((*ptr_flags) & flags) ? 1 : 0;
|
||||
|
||||
/*
|
||||
* buffer not found at all in hashtable (neither name, neitner "*")
|
||||
* buffer not found at all in hashtable (neither name, neither "*")
|
||||
* => it is NOT synchronized
|
||||
*/
|
||||
return 0;
|
||||
|
||||
@@ -35,7 +35,7 @@ enum t_relay_weechat_compression
|
||||
|
||||
struct t_relay_weechat_data
|
||||
{
|
||||
int password_ok; /* password received and ok? */
|
||||
int password_ok; /* password received and OK? */
|
||||
int compression; /* compression type */
|
||||
int nicklist_diff; /* (TEMPORARY) nicklist diff enabled?*/
|
||||
|
||||
|
||||
@@ -1174,7 +1174,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
plugin_script_display_short_list (weechat_ruby_plugin,
|
||||
ruby_scripts);
|
||||
|
||||
/* init ok */
|
||||
/* init OK */
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1361,7 +1361,7 @@ script_action_run ()
|
||||
ptr_script = ptr_script->next_script)
|
||||
{
|
||||
/*
|
||||
* if script is intalled, with new version available,
|
||||
* if script is installed, with new version available,
|
||||
* and not held, then upgrade it
|
||||
*/
|
||||
if ((ptr_script->status & SCRIPT_STATUS_INSTALLED)
|
||||
|
||||
@@ -339,7 +339,7 @@ weechat_tcl_load (const char *filename)
|
||||
"parsing file \"%s\": %s"),
|
||||
weechat_prefix ("error"), TCL_PLUGIN_NAME, filename,
|
||||
Tcl_GetStringFromObj (Tcl_GetObjResult (interp), &i));
|
||||
/* this ok, maybe "register" was called, so not return */
|
||||
/* this OK, maybe "register" was called, so not return */
|
||||
/* return 0; */
|
||||
}
|
||||
|
||||
@@ -817,7 +817,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
plugin_script_display_short_list (weechat_tcl_plugin,
|
||||
tcl_scripts);
|
||||
|
||||
/* init ok */
|
||||
/* init OK */
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ xfer_dcc_send_file_child (struct t_xfer *xfer)
|
||||
recv (xfer->sock, (char *) &ack, 4, 0);
|
||||
xfer->ack = ntohl (ack);
|
||||
|
||||
/* DCC send ok? */
|
||||
/* DCC send OK? */
|
||||
if ((xfer->pos >= xfer->size)
|
||||
&& (xfer->ack >= xfer->size))
|
||||
{
|
||||
@@ -161,8 +161,8 @@ xfer_dcc_send_file_child (struct t_xfer *xfer)
|
||||
}
|
||||
|
||||
/*
|
||||
* if send if ok since 2 seconds or more, and that no ack was received,
|
||||
* then consider it's ok
|
||||
* if send if OK since 2 seconds or more, and that no ACK was received,
|
||||
* then consider it's OK
|
||||
*/
|
||||
if ((sent_ok != 0) && (new_time > sent_ok + 2))
|
||||
{
|
||||
|
||||
@@ -324,7 +324,7 @@ xfer_close (struct t_xfer *xfer, enum t_xfer_status status)
|
||||
}
|
||||
}
|
||||
|
||||
/* remove empty file if received file failed and nothing was transfered */
|
||||
/* remove empty file if received file failed and nothing was transferred */
|
||||
if (((xfer->status == XFER_STATUS_FAILED)
|
||||
|| (xfer->status == XFER_STATUS_ABORTED))
|
||||
&& XFER_IS_FILE(xfer->type)
|
||||
|
||||
@@ -56,7 +56,7 @@ enum t_xfer_status
|
||||
XFER_STATUS_ACTIVE, /* sending/receiving data */
|
||||
XFER_STATUS_DONE, /* transfer done */
|
||||
XFER_STATUS_FAILED, /* transfer failed */
|
||||
XFER_STATUS_ABORTED, /* transfer aborded by user */
|
||||
XFER_STATUS_ABORTED, /* transfer aborted by user */
|
||||
/* number of xfer status */
|
||||
XFER_NUM_STATUS,
|
||||
};
|
||||
@@ -65,7 +65,7 @@ enum t_xfer_status
|
||||
|
||||
enum t_xfer_error
|
||||
{
|
||||
XFER_NO_ERROR = 0, /* no error to report, all ok! */
|
||||
XFER_NO_ERROR = 0, /* no error to report, all OK! */
|
||||
/* errors for sender: */
|
||||
XFER_ERROR_READ_LOCAL, /* unable to read local file */
|
||||
XFER_ERROR_SEND_BLOCK, /* unable to send block to receiver */
|
||||
@@ -79,10 +79,10 @@ enum t_xfer_error
|
||||
XFER_NUM_ERRORS,
|
||||
};
|
||||
|
||||
/* xfer blocksize */
|
||||
/* xfer block size */
|
||||
|
||||
#define XFER_BLOCKSIZE_MIN 1024 /* min blocksize */
|
||||
#define XFER_BLOCKSIZE_MAX 102400 /* max blocksize */
|
||||
#define XFER_BLOCKSIZE_MIN 1024 /* min block size */
|
||||
#define XFER_BLOCKSIZE_MAX 102400 /* max block size */
|
||||
|
||||
/* separator in filenames */
|
||||
|
||||
@@ -140,7 +140,7 @@ struct t_xfer
|
||||
int child_read; /* to read into child pipe */
|
||||
int child_write; /* to write into child pipe */
|
||||
struct t_hook *hook_fd; /* hook for socket or child pipe */
|
||||
struct t_hook *hook_timer; /* timeout for recever accept */
|
||||
struct t_hook *hook_timer; /* timeout for receiver accept */
|
||||
char *unterminated_message; /* beginning of a message */
|
||||
int file; /* local file (read or write) */
|
||||
char *local_filename; /* local filename (with path) */
|
||||
|
||||
Reference in New Issue
Block a user