diff mcabber/src/screen.c @ 1333:e30a9d907105

Minor coding style adjustments
author Mikael Berthe <mikael@lilotux.net>
date Sat, 27 Oct 2007 11:10:18 +0200
parents 248e3f69dd9e
children 8e4e741787be
line wrap: on
line diff
--- a/mcabber/src/screen.c	Sat Oct 27 11:10:12 2007 +0200
+++ b/mcabber/src/screen.c	Sat Oct 27 11:10:18 2007 +0200
@@ -293,7 +293,8 @@
     }
   }
   //Need to redraw?
-  if (chatmode && ((buddy_search_jid(muc) == current_buddy) || !strcmp(muc, "*")))
+  if (chatmode &&
+      ((buddy_search_jid(muc) == current_buddy) || !strcmp(muc, "*")))
     scr_UpdateBuddyWindow();
 }
 
@@ -302,8 +303,10 @@
 // not used if the room is in the "preset" mode
 void scr_MucNickColor(const char *nick, const char *color)
 {
-  char *snick = g_strdup_printf("<%s>", nick), *mnick = g_strdup_printf("*%s ", nick);
+  char *snick, *mnick;
   bool need_update = false;
+  snick = g_strdup_printf("<%s>", nick);
+  mnick = g_strdup_printf("*%s ", nick);
   if (!strcmp(color, "-")) {//Remove the color
     if (nickcolors) {
       nickcolor *nc = g_hash_table_lookup(nickcolors, snick);
@@ -1098,7 +1101,8 @@
         wattrset(win_entry->win, get_color(color));
       }
 
-      wprintw(win_entry->win, "%s", line->text+line->mucnicklen); // Display text line
+      // Display text line
+      wprintw(win_entry->win, "%s", line->text+line->mucnicklen);
       wclrtoeol(win_entry->win);
 
       // Return the color back
@@ -1252,7 +1256,8 @@
     g_free(nicktmp);
   }
   hbuf_add_line(&win_entry->bd->hbuf, text_locale, timestamp, prefix_flags,
-                maxX - Roster_Width - getprefixwidth(), num_history_blocks, mucnicklen);
+                maxX - Roster_Width - getprefixwidth(), num_history_blocks,
+                mucnicklen);
   g_free(text_locale);
 
   if (win_entry->bd->cleared) {
@@ -1936,7 +1941,8 @@
   roster_elt = roster_find(jidto, jidsearch,
                            ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM);
 
-  scr_WriteMessage(jidto, text, 0, prefix|HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT_OUT, 0);
+  scr_WriteMessage(jidto, text,
+                   0, prefix|HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT_OUT, 0);
 
   // Show jidto's buffer unless the buddy is not in the buddylist
   if (roster_elt && g_list_position(buddylist, roster_elt->data) != -1)
@@ -2945,9 +2951,9 @@
       !iswalnum(get_char(prev_char(ptr_inputline, inputLine))))
     i--;
 
-  for( ;
-      ptr_inputline > inputLine;
-      ptr_inputline = prev_char(ptr_inputline, inputLine)) {
+  for ( ;
+       ptr_inputline > inputLine;
+       ptr_inputline = prev_char(ptr_inputline, inputLine)) {
     if (!iswalnum(get_char(ptr_inputline))) {
       if (i) {
         ptr_inputline = next_char(ptr_inputline);