diff options
Diffstat (limited to 'src/plugins/irc/irc-mode.c')
-rw-r--r-- | src/plugins/irc/irc-mode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-mode.c b/src/plugins/irc/irc-mode.c index 97efeb434..433c7e06d 100644 --- a/src/plugins/irc/irc-mode.c +++ b/src/plugins/irc/irc-mode.c @@ -239,8 +239,8 @@ irc_mode_user_add (struct t_irc_server *server, char mode) { if (!strchr (server->nick_modes, mode)) { - server->nick_modes = (char *) realloc (server->nick_modes, - strlen (server->nick_modes) + 1 + 1); + server->nick_modes = (char *)realloc (server->nick_modes, + strlen (server->nick_modes) + 1 + 1); strcat (server->nick_modes, str_mode); //gui_status_draw (gui_current_window->buffer, 1); //gui_input_draw (gui_current_window->buffer, 1); @@ -248,7 +248,7 @@ irc_mode_user_add (struct t_irc_server *server, char mode) } else { - server->nick_modes = (char *) malloc (2); + server->nick_modes = (char *)malloc (2); strcpy (server->nick_modes, str_mode); //gui_status_draw (gui_current_window->buffer, 1); //gui_input_draw (gui_current_window->buffer, 1); @@ -272,8 +272,8 @@ irc_mode_user_remove (struct t_irc_server *server, char mode) { new_size = strlen (server->nick_modes); memmove (pos, pos + 1, strlen (pos + 1) + 1); - server->nick_modes = (char *) realloc (server->nick_modes, - new_size); + server->nick_modes = (char *)realloc (server->nick_modes, + new_size); //gui_status_draw (gui_current_window->buffer, 1); //gui_input_draw (gui_current_window->buffer, 1); } |