Просмотр исходного кода

* Port [3430] to 1.2.14
* Add '$n' expansion into realname.



svn: 3431

Bryan Drewery 19 лет назад
Родитель
Сommit
e7b272b4da
3 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      doc/UPDATES
  2. 1 1
      misc/help.txt
  3. 1 1
      src/mod/server.mod/servmsg.c

+ 1 - 0
doc/UPDATES

@@ -44,6 +44,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fix authing on non-chathubs (fixes #356)
 * Fix segfault with cmd_set and adding to empty lists.
 * Cleaned up some bugs in the 'getin' system.
+* Add '$n' expansion into realname.
 
 1.2.13 - http://wraith.shatow.net/milestone/1.2.13
 * Fix cmd_chanset accepting invalid flags

+ 1 - 1
misc/help.txt

@@ -1528,7 +1528,7 @@ See also: reload, backup
 [SL] $bservers$b         Comma-separated list of servers the bot will use.
 [SL] $bservers6$b        Comma-separated list of servers the bot will use (FOR IPv6).
  
-[S]  $brealname$b        The bot's "real name" when connecting.
+[S]  $brealname$b        The bot's "real name" when connecting. (supports '$n' expansion)
 [S]  $busermode$b        The bot's usermode on IRC. (Set on connect/rehash)
 [S]  $bnick$b            The bot's preferred nickname on IRC.
 [N]  $bnotify-time$b     The number of seconds between server notify checks for nick.

+ 1 - 1
src/mod/server.mod/servmsg.c

@@ -1600,7 +1600,7 @@ static void server_dns_callback(int id, void *client_data, const char *host, cha
     if (serverpass[0])
       dprintf(DP_MODE, "PASS %s\n", serverpass);
     dprintf(DP_MODE, "NICK %s\n", botname);
-    dprintf(DP_MODE, "USER %s localhost %s :%s\n", botuser, dcc[idx].host, botrealname);
+    dprintf(DP_MODE, "USER %s localhost %s :%s\n", botuser, dcc[idx].host, replace(botrealname, "$n", botname));
     /* Wait for async result now */
   }
 }