Changes in / [73dd021:adec749]


Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • configure

    r73dd021 radec749  
    5151pie=1
    5252
    53 arch=`uname -s`
    54 cpu=`uname -m`
     53arch=$(uname -s)
     54cpu=$(uname -m)
    5555
    5656GLIB_MIN_VERSION=2.16
     
    103103
    104104while [ -n "$1" ]; do
    105         e="`expr "X$1" : 'X--\(.*=.*\)'`"
     105        e="$(expr "X$1" : 'X--\(.*=.*\)')"
    106106        if [ -z "$e" ]; then
    107107                cat<<EOF
     
    157157
    158158# Expand $prefix and get rid of double slashes
    159 bindir=`eval echo "$bindir/" | sed 's/\/\{1,\}/\//g'`
    160 sbindir=`eval echo "$sbindir/" | sed 's/\/\{1,\}/\//g'`
    161 etcdir=`eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g'`
    162 mandir=`eval echo "$mandir/" | sed 's/\/\{1,\}/\//g'`
    163 datadir=`eval echo "$datadir/" | sed 's/\/\{1,\}/\//g'`
    164 config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'`
    165 plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'`
    166 includedir=`eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g'`
    167 libevent=`eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g'`
    168 
    169 pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'`
    170 ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'`
    171 pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'`
     159bindir=$(eval echo "$bindir/" | sed 's/\/\{1,\}/\//g')
     160sbindir=$(eval echo "$sbindir/" | sed 's/\/\{1,\}/\//g')
     161etcdir=$(eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g')
     162mandir=$(eval echo "$mandir/" | sed 's/\/\{1,\}/\//g')
     163datadir=$(eval echo "$datadir/" | sed 's/\/\{1,\}/\//g')
     164config=$(eval echo "$config/" | sed 's/\/\{1,\}/\//g')
     165plugindir=$(eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g')
     166includedir=$(eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g')
     167libevent=$(eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g')
     168
     169pidfile=$(eval echo "$pidfile" | sed 's/\/\{1,\}/\//g')
     170ipcsocket=$(eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g')
     171pcdir=$(eval echo "$pcdir" | sed 's/\/\{1,\}/\//g')
    172172
    173173protocols_mods=""
     
    308308        if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then
    309309                cat<<EOF >>Makefile.settings
    310 EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
    311 CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
     310EFLAGS+=$($PKG_CONFIG --libs glib-2.0 gmodule-2.0)
     311CFLAGS+=$($PKG_CONFIG --cflags glib-2.0 gmodule-2.0)
    312312EOF
    313313        else
    314314                echo
    315                 echo 'Found glib2 '`$PKG_CONFIG glib-2.0 --modversion`', but version '$GLIB_MIN_VERSION' or newer is required.'
     315                echo 'Found glib2 '$($PKG_CONFIG glib-2.0 --modversion)', but version '$GLIB_MIN_VERSION' or newer is required.'
    316316                exit 1
    317317        fi
     
    349349        if $PKG_CONFIG --exists gnutls; then
    350350                cat <<EOF >>Makefile.settings
    351 EFLAGS+=`$PKG_CONFIG --libs gnutls` `libgcrypt-config --libs`
    352 CFLAGS+=`$PKG_CONFIG --cflags gnutls` `libgcrypt-config --cflags`
     351EFLAGS+=$($PKG_CONFIG --libs gnutls) $(libgcrypt-config --libs)
     352CFLAGS+=$($PKG_CONFIG --cflags gnutls) $(libgcrypt-config --cflags)
    353353EOF
    354354                ssl=gnutls
     
    360360        elif libgnutls-config --version > /dev/null 2> /dev/null; then
    361361                cat <<EOF >>Makefile.settings
    362 EFLAGS+=`libgnutls-config --libs` `libgcrypt-config --libs`
    363 CFLAGS+=`libgnutls-config --cflags` `libgcrypt-config --cflags`
     362EFLAGS+=$(libgnutls-config --libs) $(libgcrypt-config --libs)
     363CFLAGS+=$(libgnutls-config --cflags) $(libgcrypt-config --cflags)
    364364EOF
    365365               
     
    375375        if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG nss; then
    376376                cat<<EOF >>Makefile.settings
    377 EFLAGS+=`$PKG_CONFIG --libs nss`
    378 CFLAGS+=`$PKG_CONFIG --cflags nss`
     377EFLAGS+=$($PKG_CONFIG --libs nss)
     378CFLAGS+=$($PKG_CONFIG --cflags nss)
    379379EOF
    380380               
     
    621621if [ -z "$systemdsystemunitdir" ]; then
    622622        if $PKG_CONFIG --exists systemd; then
    623                 systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
     623                systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
    624624        fi
    625625fi
  • irc_channel.c

    r73dd021 radec749  
    445445                        char *acc_s;
    446446
    447                         if (!aj || (ic->flags & IRC_CHANNEL_JOINED)) {
    448                                 /* Only continue if this one's marked as auto_join
    449                                    or if we're in it already. (Possible if the
    450                                    client auto-rejoined it before identyfing.) */
     447                        if (!aj && !(ic->flags & IRC_CHANNEL_JOINED)) {
     448                                /* Only proceed if this one's marked as auto_join
     449                                   or if we're in it already. (Very likely the IRC
     450                                   client auto-(re)joining at reconnect time.) */
    451451                                continue;
    452452                        } else if (!(acc_s = set_getstr(&ic->set, "account"))) {
  • irc_im.c

    r73dd021 radec749  
    836836            (room = set_getstr(&ic->set, "room")) &&
    837837            (acc = account_get(ic->irc->b, acc_s)) &&
    838             acc->ic && acc->prpl->chat_join) {
     838            acc->ic && (acc->ic->flags & OPT_LOGGED_IN) &&
     839            acc->prpl->chat_join) {
    839840                char *nick;
    840841
Note: See TracChangeset for help on using the changeset viewer.